[Numpy-discussion] int 'up'casted to uint
oliphant.travis at ieee.org
Tue Jul 11 11:03:38 CDT 2006
Pau Gargallo wrote:
> looking at the upcasting table at
> I saw that int's are sometimes casted to uint's.
> In : a = array(,int16)
> In : b = array(,uint32)
> In : a+b
> Out: array(, dtype=uint32)
> is that intended?
It's a bug. The result should be int64. I've fixed it in SVN.
More information about the Numpy-discussion