diff options
author | AnyLeftovers <37920527+yudonglin@users.noreply.github.com> | 2022-12-12 00:28:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 08:28:29 +0000 |
commit | cbcda04523900612ef543ac7f99d70f5bfd0ca88 (patch) | |
tree | b83f2fa6d4ee9394e7b0865da65ec0e839cfcf92 | |
parent | f109a57212c5078757b0ea0f847f01b86eb19912 (diff) | |
download | cython-cbcda04523900612ef543ac7f99d70f5bfd0ca88.tar.gz |
Fix module struct C syntax error on windows (#5171)
The module struct was being initialized with `= {}` which isn't valid C until C23 so MSVC was rejecting it
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 0a7308562..635dcd543 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2787,7 +2787,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): env.module_cname, Naming.pymoduledef_cname)) module_state.putln("#else") - module_state.putln('static %s %s_static = {};' % ( + module_state.putln('static %s %s_static = {0};' % ( Naming.modulestate_cname, Naming.modulestateglobal_cname )) |