X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/ae5dbbad6a05a824599c6655ec9ae9d579e9c30d..9b5c9816d970d9c1f74d5f99e6f6d700e47eed6e:/algorithms.c diff --git a/algorithms.c b/algorithms.c index 24ebd74..61459a1 100644 --- a/algorithms.c +++ b/algorithms.c @@ -1880,7 +1880,7 @@ static PyObject *shakemeth_copy(PyObject *me, PyObject *arg) rc->h = *SHAKE_H(me); rc->st = SHAKE_ST(me); end: - return ((PyObject *)me); + return ((PyObject *)rc); } static PyObject *shakemeth_get(PyObject *me, PyObject *arg)