Skip to content

Commit

Permalink
fix a type error detected on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Jan 12, 2024
1 parent 73b4b68 commit 0a8e287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/python/pypgf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0a8e287

Please sign in to comment.