Commits

Christian Rafael committed bbc8261 Draft Merge

Mesclado pypy/pypy em default

Comments (0)

Files changed (1)

rpython/rtyper/lltypesystem/rffi.py

     if tp is lltype.SingleFloat:
         return 4
     if tp is lltype.LongFloat:
-        import ctypes    # :-/
-        return ctypes.sizeof(ctypes.c_longdouble)
+        # :-/
+        return sizeof_c_type("long double")
     assert isinstance(tp, lltype.Number)
     if tp is lltype.Signed:
         return LONG_BIT/8