mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #22218: Fix "comparison between signed and unsigned integers" warning in
Modules/_sqlite/cursor.c.
This commit is contained in:
parent
f13c46cc69
commit
cfcde8ca40
1 changed files with 1 additions and 1 deletions
|
@ -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++);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue