Kaydet (Commit) cfcde8ca authored tarafından Victor Stinner's avatar Victor Stinner

Issue #22218: Fix "comparison between signed and unsigned integers" warning in

Modules/_sqlite/cursor.c.
üst f13c46cc
......@@ -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++);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment