forked from GitHub/gf-core
fix a type error detected on macOS
This commit is contained in:
@@ -970,7 +970,7 @@ PGF_generateRandom(PGFObject *self, PyObject *args, PyObject *keywds)
|
|||||||
if (py_seed == NULL)
|
if (py_seed == NULL)
|
||||||
return 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);
|
Py_DECREF(py_seed);
|
||||||
|
|
||||||
PgfExn err;
|
PgfExn err;
|
||||||
|
|||||||
Reference in New Issue
Block a user