Author: Armin Rigo <[email protected]>
Branch: static-callback
Changeset: r2384:98e2f9e1ab1c
Date: 2015-11-13 13:43 +0100
http://bitbucket.org/cffi/cffi/changeset/98e2f9e1ab1c/
Log: fix
diff --git a/cffi/recompiler.py b/cffi/recompiler.py
--- a/cffi/recompiler.py
+++ b/cffi/recompiler.py
@@ -1162,7 +1162,8 @@
#
# Write the implementation of the functions declared above
def may_need_128_bits(tp):
- return tp.name == 'long double'
+ return (isinstance(tp, model.PrimitiveType) and
+ tp.name == 'long double')
#
for j in range(len(self._callpy)):
tp, name = self._callpy[j]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit