mirror of https://github.com/python/cpython
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:
parent
b348313e7a
commit
465df8855e
|
@ -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) {
|
||||
*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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue