|
|
|
|
|
by peterderivaz
4138 days ago
|
|
I ran into this when computing PSNR comparisons using a Numpy function that returned a numpy integer type: >>> import numpy
>>> x=0
>>> y=numpy.int32(2*10**9)
>>> x+=y
>>> x+=y
>>> x
-294967296
In later versions of Python this gives a RuntimeWarning so this is less likely to cause problems now. |
|