[th/gcc4] apps fixing guide #1 - signed overflow.

Michal Moskal michal.moskal w gmail.com
Sob, 22 Kwi 2006, 14:08:00 CEST


On 4/22/06, Paweł Sikora <pluto w agmk.net> wrote:
> pozwole sobię zacytować standard:
>
> [ cite C++ standard / $5.5 ]
>
> if during the evaluation of an expression the result isn't mathematically
> defined nor in the range of representable values for its type the behaviuor
> is undefined, unless such an expression is a constant expression, in which
> case the program is ill-formed. (...)
>
> [ /cite ]

Należy nadmienić, że rezultaty overflow na typach unsigned sa
zdefiniowane (arytmetyka modulo 2^32).

--
   Michal Moskal,
   http://nemerle.org/~malekith/


Więcej informacji o liście dyskusyjnej pld-devel-pl