[elektro] change of sign, miért?

Fuzesi Arnold arnold.fuzesi.lista at gmail.com
Tue Apr 27 17:15:43 CEST 2010


#define	MIN_VAL(val)	( (sizeof(val)==1)?(-128):0 || (sizeof(val)==2)?(-32768):0 
|| (sizeof(val)==4)?(-2147483648):0 )

...
		schar tmp;
...
...

sys_stat.tmp1.tmp=MIN_VAL(sys_stat.tmp1.tmp);

Warning[Pe068]: integer conversion resulted in a change of sign

Nem ertem... pontosan mi  a nyu"gje?


thx,
A.



More information about the Elektro mailing list