diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-17 19:09:30 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-17 19:09:30 (GMT) |
commit | cfcde8ca400cf77cc83c03b83813f1c106a2947a (patch) | |
tree | 517752b514b712abec5542deb441a98a845c1de0 /Modules/_sqlite | |
parent | f13c46cc69b559a366c36c0fd871bfe5f8d24650 (diff) | |
download | cpython-cfcde8ca400cf77cc83c03b83813f1c106a2947a.zip cpython-cfcde8ca400cf77cc83c03b83813f1c106a2947a.tar.gz cpython-cfcde8ca400cf77cc83c03b83813f1c106a2947a.tar.bz2 |
Issue #22218: Fix "comparison between signed and unsigned integers" warning in
Modules/_sqlite/cursor.c.
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r-- | Modules/_sqlite/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index db96b02..7fe00e3 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -46,7 +46,7 @@ static pysqlite_StatementKind detect_statement_type(const char* statement) 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++); } |