Commits

Stefano Rivera committed cee02a6

wchar_t is 4 byte, signed on arm64

Comments (0)

Files changed (1)

testing/backend_tests.py

 import py
+import platform
 import sys, ctypes
 from cffi import FFI, CDefError
 from testing.support import *
         p = ffi.cast("long long", ffi.cast("wchar_t", -1))
         if SIZE_OF_WCHAR == 2:      # 2 bytes, unsigned
             assert int(p) == 0xffff
+        elif platform.machine() == 'aarch64': # 4 bytes, unsigned
+            assert int(p) == 0xffffffff
         else:                       # 4 bytes, signed
             assert int(p) == -1
         p = ffi.cast("int", u+'\u1234')