From 0a8e287948bc61372fd0f30086090fca58ace5fc Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Fri, 12 Jan 2024 19:18:16 +0100 Subject: [PATCH] fix a type error detected on macOS --- src/runtime/python/pypgf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c index 2aa1c0eca..b123a6b2c 100644 --- a/src/runtime/python/pypgf.c +++ b/src/runtime/python/pypgf.c @@ -970,7 +970,7 @@ PGF_generateRandom(PGFObject *self, PyObject *args, PyObject *keywds) if (py_seed == NULL) return NULL; - size_t seed = PyLong_AsSsize_t(py_seed); + uint64_t seed = (uint64_t) PyLong_AsSsize_t(py_seed); Py_DECREF(py_seed); PgfExn err;