[Image-SIG] Bug in convert?

Fredrik Lundh fredrik@pythonware.com
Fri, 27 Dec 2002 15:22:59 +0100


Edward C. Jones wrote:

> The following program gives the unexpected answer of -2147483648. The=20
> source code for "f2i" in "Convert.c" simply casts the float to an int. =

> My copy of Harbison & Steele says that the cast is undefined in this =
case.

PIL uses the same definition as C.

</F>