Skip to content

Commit

Permalink
pypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Jul 1, 2021
1 parent c48044a commit fd0800a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cppyy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def sizeof(tt):
try:
return _sizes[tt]
except KeyError:
if type(tt).__module__ == '_ctypes':
if type(tt).__module__[:7] == '_ctypes':
sz = ctypes.sizeof(tt)
else:
sz = gbl.gInterpreter.ProcessLine("sizeof(%s);" % (_get_name(tt),))
Expand Down

0 comments on commit fd0800a

Please sign in to comment.