Author: Armin Rigo <ar...@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;')
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to