Commits

Maciej Fijalkowski committed c72d8c4

oops

  • Participants
  • Parent commits 939a94b
  • Branches backend-vector-ops

Comments (0)

Files changed (1)

File pypy/module/micronumpy/interp_support.py

     fromstring_loop(a, count, dtype, itemsize, s)
     return space.wrap(a)
 
-fromstring_driver = jit.JitDriver(greens=[], reds=['count', 'itemsize', 'dtype',
-                                                   'ai', 'a', 's'])
+fromstring_driver = jit.JitDriver(greens=[], reds=['count', 'i', 'itemsize',
+                                                   'dtype', 'ai', 'a', 's'])
 
 def fromstring_loop(a, count, dtype, itemsize, s):
     ai = a.create_iter()
     i = 0
     while i < count:
         fromstring_driver.jit_merge_point(a=a, count=count, dtype=dtype,
-                                          itemsize=itemsize, s=s, ai=ai)
+                                          itemsize=itemsize, s=s, ai=ai,
+                                          i=i)
         start = i*itemsize
         assert start >= 0
         val = dtype.itemtype.runpack_str(s[start:start + itemsize])