fix warnings detected by MSVC

This commit is contained in:
Krasimir Angelov
2023-05-11 05:52:39 +02:00
parent a514500bba
commit 98165bd8b5
6 changed files with 7 additions and 7 deletions

View File

@@ -517,7 +517,7 @@ match_lit(PgfMarshaller *this, PgfUnmarshaller *u, PgfLiteral lit)
Py_DECREF(intShifter);
return 0;
}
for (int n = size-1; n > 0; n--) {
for (size_t n = size-1; n > 0; n--) {
PyObject *rem = PyNumber_Remainder(x, intShifter);
if (!rem) {
PyMem_RawFree(i);