Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1765:8a35ce16a595
Date: 2015-04-18 17:51 +0200
http://bitbucket.org/cffi/cffi/changeset/8a35ce16a595/
Log: fix for compiler warnings
diff --git a/new/recompiler.py b/new/recompiler.py
--- a/new/recompiler.py
+++ b/new/recompiler.py
@@ -433,7 +433,7 @@
' offsetof(struct _cffi_align_%s, y),\n' % (name,) +
' _cffi_FIELDS_FOR_%s, %d },' % (name, len(tp.fldtypes),))
else:
- size_align = ' -1, -1, -1, 0 /* opaque */ },'
+ size_align = ' (size_t)-1, -1, -1, 0 /* opaque */ },'
self._lsts["struct_union"].append(
' { "%s", %d, %s,' % (name, type_index, flags) + size_align)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit