From e2a9e88ceb3fdbf9904366e7b3d2f87a9bcea9d7 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 8 Apr 2020 00:19:14 +0100 Subject: [PATCH] rand.c: More `Py_ssize_t' fixes. --- rand.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rand.c b/rand.c index 1203f76..641b9bd 100644 --- a/rand.c +++ b/rand.c @@ -935,7 +935,7 @@ static PyTypeObject gclatinrand_pytype_skel = { static PyObject *sslprf_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) { char *k, *s; - int ksz, ssz; + Py_ssize_t ksz, ssz; const gchash *hco = &md5, *hci = &sha; PyObject *rc = 0; char *kwlist[] = { "key", "seed", "ohash", "ihash", 0 }; @@ -952,7 +952,7 @@ end: static PyObject *tlsdx_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) { char *k, *s; - int ksz, ssz; + Py_ssize_t ksz, ssz; const gcmac *mc = &sha_hmac; PyObject *rc = 0; char *kwlist[] = { "key", "seed", "mac", 0 }; @@ -969,7 +969,7 @@ end: static PyObject *tlsprf_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) { char *k, *s; - int ksz, ssz; + Py_ssize_t ksz, ssz; const gcmac *mcl = &md5_hmac, *mcr = &sha_hmac; PyObject *rc = 0; char *kwlist[] = { "key", "seed", "lmac", "rmac", 0 }; @@ -1132,7 +1132,7 @@ static PyTypeObject tlsprf_pytype_skel = { static PyObject *dsarand_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw) { char *p; - int sz; + Py_ssize_t sz; PyObject *rc = 0; char *kwlist[] = { "seed", 0 }; -- 2.11.0