Amarok build failure on armel for Kubuntu

Thomas Lübking thomas.luebking at gmail.com
Thu Dec 9 18:06:40 CET 2010


Am Thursday 09 December 2010 schrieb Bart Cerneels:
> const qreal addLabelProxyWidth = qMin( size().width() - 2 *
> standardPadding(), 300.0 );
> 
> The literal 300.0 gets treated as a double by the compiler it seems.
Yes, as supposed to be.... (300.0f is float, qreal is no POD)

> To me that suggests a compiler bug 
No, the problem is that qreal is double on all architechtures except for ARM, 
where it's defined float. (imho a debatable decision)
Since qMin/qMax are template functions they cannot autocast, so yes:

> const qreal addLabelProxyWidth = qMin( size().width() - 2 *
> standardPadding(), (qreal)300.0 );
this is actually the (or rather one) correct solution.

Cheers


More information about the Amarok-devel mailing list