1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed 4ca307b

fix size of numpy unicode dtype

  • Participants
  • Parent commits cc1f466
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/micronumpy/types.py

View file
  • Ignore whitespace
             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):