提交 1895146c authored 作者: Melanie Ducoffe's avatar Melanie Ducoffe

PyInt_asLong -> PyLong_asLong

上级 5f152002
...@@ -5521,7 +5521,7 @@ class AllocEmpty(gof.Op): ...@@ -5521,7 +5521,7 @@ class AllocEmpty(gof.Op):
for idx, sh in enumerate(shps): for idx, sh in enumerate(shps):
str +="dims[%(idx)s] =" \ str +="dims[%(idx)s] =" \
"((npy_intp) PyInt_AsLong((PyObject*)%(sh)s));\n" % locals() "((npy_intp) PyLong_AsLong((PyObject*)%(sh)s));\n" % locals()
# Validate that the output storage exists # Validate that the output storage exists
str += "if(%(out)s==NULL\n" % locals() str += "if(%(out)s==NULL\n" % locals()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论