mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-28 09:23:18 -06:00
fix a type error detected on macOS
This commit is contained in:
1 parent
73b4b68460
commit
0a8e287948
1 file changed
+1
-1
@@ -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