[kde-edu]: Crash in KPlotWidget

RalfGesellensetter rgx at gmx.de
Tue Sep 19 20:48:07 CEST 2006


Am Dienstag 19 September 2006 19:57 schrieb Carsten Niehaus:
> Moin moin, this line crashes:
>
> 83              if (x2<x1) { XA1=x2; XA2=x1; }


This reminds me to a compiler optimization bug.

why not code like

#define MIN(a,b)	(((a)<(b))?(a):(b))
#define MAX(a,b)	(((a)>(b))?(a):(b))

XA1=MIN( x1, x2);
XA2=MAX(x1, x2);


More information about the kde-edu mailing list