We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6dcb21 commit ec481b6Copy full SHA for ec481b6
Modules/_randommodule.c
@@ -313,7 +313,7 @@ random_setstate(RandomObject *self, PyObject *state)
313
int i;
314
unsigned long element;
315
long index;
316
- uint32_t new_state[N];
+ PY_UINT32_T new_state[N];
317
318
if (!PyTuple_Check(state)) {
319
PyErr_SetString(PyExc_TypeError,
@@ -330,7 +330,7 @@ random_setstate(RandomObject *self, PyObject *state)
330
element = PyLong_AsUnsignedLong(PyTuple_GET_ITEM(state, i));
331
if (element == (unsigned long)-1 && PyErr_Occurred())
332
return NULL;
333
- new_state[i] = (uint32_t)element;
+ new_state[i] = (PY_UINT32_T)element;
334
}
335
336
index = PyLong_AsLong(PyTuple_GET_ITEM(state, i));
0 commit comments