Skip to content

Commit

Permalink
keep multi-dim if malloc'ing a pointer type
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Sep 11, 2021
1 parent ac2c764 commit 4d393aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cppyy/ll.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __getitem__(self, t):
return self
def __call__(self, size, managed=False):
res = self.func[self.array_type](size)
res.reshape((size,))
res.reshape((size,)+res.shape[1:])
if managed: res.__python_owns__ = True
return res

Expand Down

0 comments on commit 4d393aa

Please sign in to comment.