static PyObject *grmeth_word(PyObject *me, PyObject *arg)
{
if (!PyArg_ParseTuple(arg, ":word")) return (0);
- return (getu32(grand_word(GRAND_R(me))));
+ return (getulong(grand_word(GRAND_R(me))));
}
static PyObject *grmeth_range(PyObject *me, PyObject *arg)
grand *r = GRAND_R(me); unsigned n; uint32 w;
if (!PyArg_ParseTuple(arg, "O&:bits", convuint, &n)) goto end;
if (n > 32) VALERR("can't get more than 32 bits");
- r->ops->misc(r, BBS_BITS, n, &w); return (getu32(w));
+ r->ops->misc(r, BBS_BITS, n, &w); return (getulong(w));
end:
return (0);
}