From 7e747fbd171475dd419e251ed499d4a06a34bd1c Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Mon, 13 Sep 2021 15:23:07 +0200 Subject: [PATCH] int -> size_t --- src/runtime/python/marshaller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/python/marshaller.c b/src/runtime/python/marshaller.c index c7b707802..32a43095f 100644 --- a/src/runtime/python/marshaller.c +++ b/src/runtime/python/marshaller.c @@ -74,7 +74,7 @@ PgfLiteral lint(PgfUnmarshaller *this, size_t size, uintmax_t *v) return (PgfLiteral) 0; } else { PyObject *intShifter = PyLong_FromUnsignedLong(pow(10, floor(log10(ULONG_MAX)))); - for (int n = 1; n < size; n++) { + for (size_t n = 1; n < size; n++) { i = PyNumber_Multiply(i, intShifter); if (*v0 >= 0) { i = PyNumber_Add(i, PyLong_FromUnsignedLong(v[n]));