1. shoma h4a
  2. pypy

Commits

Christian Tismer  committed cf81cef

struct.pack issues with the JIT

  • Participants
  • Parent commits c0364c9
  • Branches win64-stage1

Comments (0)

Files changed (1)

File pypy/jit/backend/llsupport/test/test_descr.py

View file
  • Ignore whitespace
     #
     def get_alignment(code):
         # Retrieve default alignment for the compiler/platform
-        return struct.calcsize('l' + code) - struct.calcsize(code)
+        return struct.calcsize(lltype.SignedFmt + code) - struct.calcsize(code)
     assert descr1.get_base_size(False) == get_alignment('c')
     assert descr2.get_base_size(False) == get_alignment('p')
     assert descr3.get_base_size(False) == get_alignment('p')