rand.c: Fix `TrueRand' constructor so it can possibly work.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 15 Nov 2019 18:30:55 +0000 (18:30 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:12 +0000 (22:18 +0000)
rand.c

diff --git a/rand.c b/rand.c
index 5a323b0..1203f76 100644 (file)
--- a/rand.c
+++ b/rand.c
@@ -506,7 +506,7 @@ static PyObject *truerand_pynew(PyTypeObject *ty,
   char *kwlist[] = { 0 };
   grand *r;
   PyObject *rc = 0;
-  if (PyArg_ParseTupleAndKeywords(arg, kw, ":new", kwlist)) goto end;
+  if (!PyArg_ParseTupleAndKeywords(arg, kw, ":new", kwlist)) goto end;
   r = rand_create();
   r->ops->misc(r, RAND_NOISESRC, &noise_source);
   r->ops->misc(r, RAND_SEED, 160);