Skip to content

Commit d379e28

Browse files
committed
missing param
(this is how useful github vscode editor w/o ability to build and test before commit is...)
1 parent 40fd92a commit d379e28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Modules/sha2module.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include "Python.h"
2424
#include "pycore_bitutils.h" // _Py_bswap32()
25+
#include "pycore_moduleobject.h" // _PyModule_GetState()
2526
#include "pycore_strhex.h" // _Py_strhex()
2627
#include "structmember.h" // PyMemberDef
2728
#include "hashlib.h"
@@ -765,16 +766,16 @@ static int sha2_exec(PyObject *module)
765766
return -1;
766767
}
767768

768-
if (PyModule_AddType((PyObject *)state->sha224_type) < 0) {
769+
if (PyModule_AddType(module, (PyObject *)state->sha224_type) < 0) {
769770
return -1;
770771
}
771-
if (PyModule_AddType((PyObject *)state->sha256_type) < 0) {
772+
if (PyModule_AddType(module, (PyObject *)state->sha256_type) < 0) {
772773
return -1;
773774
}
774-
if (PyModule_AddType((PyObject *)state->sha384_type) < 0) {
775+
if (PyModule_AddType(module, (PyObject *)state->sha384_type) < 0) {
775776
return -1;
776777
}
777-
if (PyModule_AddType((PyObject *)state->sha512_type) < 0) {
778+
if (PyModule_AddType(module, (PyObject *)state->sha512_type) < 0) {
778779
return -1;
779780
}
780781

0 commit comments

Comments
 (0)