[pypy-commit] cffi cffi-1.0: fix for compiler warnings

arigo noreply at buildbot.pypy.org
Sat Apr 18 17:58:40 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
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)
 


More information about the pypy-commit mailing list