diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-02-22 17:57:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 17:57:12 (GMT) |
commit | 465df8855e9fff771e119ea525344de48869ef1a (patch) | |
tree | 02947c3d5d334499110423b288c50a146e40f955 /Objects/longobject.c | |
parent | b348313e7a48811acacc293ac4b2c8b20b4c631b (diff) | |
download | cpython-465df8855e9fff771e119ea525344de48869ef1a.zip cpython-465df8855e9fff771e119ea525344de48869ef1a.tar.gz cpython-465df8855e9fff771e119ea525344de48869ef1a.tar.bz2 |
gh-115827: Fix compile warning in `longobject.c` (#115828)
Objects/longobject.c:1186:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index fe78298..2d1c6ad 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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; } } |