Commits

timfel committed 7ca73d8

always create LargePositiveIntegers if lt 4 bytes

Comments (0)

Files changed (1)

         elif self.instance_kind == FLOAT:
             w_new = model.W_Float(0) # Squeak gives a random piece of memory
         elif self.instance_kind == LARGE_POSITIVE_INTEGER:
-            if extrasize == 4:
+            if extrasize <= 4:
                 w_new = model.W_LargePositiveInteger1Word(0, extrasize)
             else:
                 w_new = model.W_BytesObject(w_cls, extrasize)