chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae5dbba
)
algorithms.c (ShakeNN.copy): Return the copy rather than the original.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 14 Oct 2019 00:03:58 +0000
(
01:03
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 22 Nov 2019 22:18:12 +0000
(22:18 +0000)
algorithms.c
patch
|
blob
|
blame
|
history
diff --git
a/algorithms.c
b/algorithms.c
index 24ebd748af9cbc58a562875f9885c8c61d3200e5..61459a1f977eb4ab4da72f51bcfb1a7270a68dca 100644
(file)
--- 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:
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)
}
static PyObject *shakemeth_get(PyObject *me, PyObject *arg)