KDE & ARM (and introduction post to kde-core-devel)

Lubos Lunak l.lunak at suse.cz
Fri May 29 18:18:32 BST 2009


On Friday 29 of May 2009, Aaron J. Seigo wrote:
> for the interest of others, the most common reason this problem poked its
> head up in plasma was when doing something like this:
>
> qreal value = 1;
> .. some code ..
> value = qMax(0.0, value);
>
> this works just fine on archs like intel where qreal == double, but fails
> to build on arm. solution is simple:
>
> value = qMax(qreal(0.0), value);

 Making code ugly everywhere is not exactly a simple solution. Would the 
simple solution work (i.e. adding the necessary qMax overloads)?

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12   tel: +420 284 084 672
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http://www.suse.cz




More information about the kde-core-devel mailing list