[Python-checkins] cpython: Issue #22218: Fix "comparison between signed and unsigned integers" warning in
victor.stinner
python-checkins at python.org
Sun Aug 17 21:10:07 CEST 2014
http://hg.python.org/cpython/rev/2f2c1816d0c7
changeset: 92140:2f2c1816d0c7
user: Victor Stinner <victor.stinner at gmail.com>
date: Sun Aug 17 21:09:30 2014 +0200
summary:
Issue #22218: Fix "comparison between signed and unsigned integers" warning in
Modules/_sqlite/cursor.c.
files:
Modules/_sqlite/cursor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -46,7 +46,7 @@
dst = buf;
*dst = 0;
- while (Py_ISALPHA(*src) && dst - buf < sizeof(buf) - 2) {
+ while (Py_ISALPHA(*src) && (dst - buf) < ((Py_ssize_t)sizeof(buf) - 2)) {
*dst++ = Py_TOLOWER(*src++);
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list