Check duplicate issues.
Description
Casting an int64 numpy array into a signed long long pointer gives an unsigned long long pointer instead.
Reproducer
import cppyy
import cppyy.ll
import numpy as np
arr = np.array([-1, 0, 1], dtype=np.int64)
view = cppyy.ll.cast[f"long long*"](arr.ctypes.data)
# prints 18446744073709551615 instead of -1
print(view[0])
# prints 'L' instead of 'l'
print(view.typecode)
ROOT version
cppyy==3.5.0
Installation method
conda (bundled with root)
Operating system
Linux
Additional context
No response
Check duplicate issues.
Description
Casting an
int64numpy array into asigned long longpointer gives anunsigned long longpointer instead.Reproducer
ROOT version
cppyy==3.5.0
Installation method
conda (bundled with root)
Operating system
Linux
Additional context
No response