Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/runtime/lpython/lpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,10 @@ def __repr__(self):
return ctypes_c_void_p()

def cptr_to_u64(cptr):
return ctypes.addressof(cptr)
return u64(ctypes.addressof(cptr))

def u64_to_cptr(ivalue):
return ctypes.c_void_p(ivalue)
return ctypes.c_void_p(i64(ivalue))

def sizeof(arg):
return ctypes.sizeof(convert_type_to_ctype(arg))
Expand Down