Commits

Brian Kearns committed 4ca307b

fix size of numpy unicode dtype

Comments (0)

Files changed (1)

pypy/module/micronumpy/types.py

             self._store(storage, i, offset, box, width)
 
 class UnicodeType(FlexibleType):
-    T = lltype.UniChar
+    T = lltype.Char
+
+    def get_element_size(self):
+        return 4  # always UTF-32
 
     @jit.unroll_safe
     def coerce(self, space, dtype, w_item):