[pypy-commit] cffi cffi-1.0: Silence warnings
arigo
noreply at buildbot.pypy.org
Fri May 8 10:24:41 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1927:389b3c07ffda
Date: 2015-05-08 10:01 +0200
http://bitbucket.org/cffi/cffi/changeset/389b3c07ffda/
Log: Silence warnings
diff --git a/_cffi1/recompiler.py b/_cffi1/recompiler.py
--- a/_cffi1/recompiler.py
+++ b/_cffi1/recompiler.py
@@ -673,6 +673,8 @@
prnt(' *o = (unsigned long long)((%s) << 0);'
' /* check that we get an integer */' % (name,))
if check_value is not None:
+ if check_value > 0:
+ check_value = '%dU' % (check_value,)
prnt(' if (!_cffi_check_int(*o, n, %s))' % (check_value,))
prnt(' n |= 2;')
prnt(' return n;')
More information about the pypy-commit
mailing list