Commit 3aa13fa7 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #87 from bfroehle/static_minusones

Change __Pyx_zeros and __Pyx_minusones scope to static.
parents c8bf02a1 15e7065b
...@@ -484,8 +484,8 @@ def use_bufstruct_declare_code(env): ...@@ -484,8 +484,8 @@ def use_bufstruct_declare_code(env):
def get_empty_bufstruct_code(max_ndim): def get_empty_bufstruct_code(max_ndim):
code = dedent(""" code = dedent("""
Py_ssize_t __Pyx_zeros[] = {%s}; static Py_ssize_t __Pyx_zeros[] = {%s};
Py_ssize_t __Pyx_minusones[] = {%s}; static Py_ssize_t __Pyx_minusones[] = {%s};
""") % (", ".join(["0"] * max_ndim), ", ".join(["-1"] * max_ndim)) """) % (", ".join(["0"] * max_ndim), ", ".join(["-1"] * max_ndim))
return UtilityCode(proto=code) return UtilityCode(proto=code)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment