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

Aaron J. Seigo aseigo at kde.org
Fri May 29 18:55:31 BST 2009


On Friday 29 May 2009, Lubos Lunak wrote:
> 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)?

that makes a lot of sense imo for archs where qreal != double. qMin, qBound 
and the rest would need the same, of course, but then it would be transparent 
to the app dev and a lot less ugly in the app code, as you note.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090529/e87cc06e/attachment.sig>


More information about the kde-core-devel mailing list