Commits

Jeff Terrace  committed 431152c

Moved generic int code from Integer to Long

  • Participants
  • Parent commits 7411229
  • Branches numpy-full-fromstring

Comments (0)

Files changed (1)

File pypy/module/micronumpy/types.py

 
 class Integer(Primitive):
     _mixin_ = True
-    format_code = 'l'
 
     def _coerce(self, space, w_item):
         return self.box(space.int_w(space.call_function(space.w_int, w_item)))
 class Long(BaseType, Integer):
     T = rffi.LONG
     BoxType = interp_boxes.W_LongBox
+    format_code = 'l'
 
 class ULong(BaseType, Integer):
     T = rffi.ULONG