gh-115827: Fix compile warning in `longobject.c` (#115828)

Objects/longobject.c:1186:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
This commit is contained in:
Nikita Sobolev 2024-02-22 20:57:12 +03:00 committed by GitHub
parent b348313e7a
commit 465df8855e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1183,7 +1183,7 @@ PyLong_AsNativeBytes(PyObject* vv, void* buffer, Py_ssize_t n, int endianness)
for (Py_ssize_t i = sizeof(cv.b); i > 0; --i) { for (Py_ssize_t i = sizeof(cv.b); i > 0; --i) {
*b++ = cv.b[i - 1]; *b++ = cv.b[i - 1];
} }
for (Py_ssize_t i = 0; i < n - sizeof(cv.b); ++i) { for (Py_ssize_t i = 0; i < n - (int)sizeof(cv.b); ++i) {
*b++ = fill; *b++ = fill;
} }
} }