Skip to content

Instantly share code, notes, and snippets.

@sthalik
Last active May 10, 2017 13:19
Show Gist options
  • Save sthalik/f4cedc059dcc47cc1f63873841b6e803 to your computer and use it in GitHub Desktop.
Save sthalik/f4cedc059dcc47cc1f63873841b6e803 to your computer and use it in GitHub Desktop.
diff -r df2a94c7ae6f rpython/rtyper/lltypesystem/rffi.py
--- a/rpython/rtyper/lltypesystem/rffi.py Sat May 06 19:38:18 2017 +0100
+++ b/rpython/rtyper/lltypesystem/rffi.py Wed May 10 14:19:30 2017 +0100
@@ -1075,7 +1075,7 @@
return size
if (tp is lltype.Signed or isinstance(tp, lltype.Ptr)
or tp is llmemory.Address):
- return LONG_BIT/8
+ return r_intptr_t.BITS/8
if tp is lltype.Char or tp is lltype.Bool:
return 1
if tp is lltype.UniChar:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment