Skip to content

Commit 387b140

Browse files
committed
cdef declaration
1 parent e7f9b99 commit 387b140

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

symengine/lib/symengine_wrapper.in.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,13 +1338,14 @@ cdef class Symbol(Expr):
13381338
cdef class Dummy(Symbol):
13391339

13401340
def __init__(Basic self, name=None, dummy_index=None, *args, **kwargs):
1341+
cdef size_t index
13411342
if dummy_index is None:
13421343
if name is None:
13431344
self.thisptr = symengine.make_rcp_Dummy()
13441345
else:
13451346
self.thisptr = symengine.make_rcp_Dummy(name.encode("utf-8"))
13461347
else:
1347-
cdef size_t index = dummy_index
1348+
index = dummy_index
13481349
self.thisptr = symengine.make_rcp_Dummy(name.encode("utf-8"), index)
13491350

13501351
@property

0 commit comments

Comments
 (0)