File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments