[NumPy-Tickets] [NumPy] #1940: uint64 modulo arithmetic broken

NumPy Trac numpy-tickets@scipy....
Mon Aug 22 10:14:19 CDT 2011


#1940: uint64 modulo arithmetic broken
----------------------+-----------------------------------------------------
 Reporter:  AngerMCS  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  1.6.0      
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by charris):

 Note:


 {{{
 In [2]: uint64(-1) % uint64(2)
 Out[2]: 1
 }}}


 So probably what should happen in the original case is an error message on
 account of the promotion of kinds.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1940#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list