Skip to content

Commit cef2b33

Browse files
committed
Fix MMIO hooks prototypes
1 parent b1605d4 commit cef2b33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/python/unicorn/unicorn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def __set_prototype(fname: str, restype: Type[ctypes._CData], *argtypes: Type[ct
190190
HOOK_TCG_OPCODE_CFUNC = ctypes.CFUNCTYPE(None, uc_engine, ctypes.c_uint64, ctypes.c_uint64, ctypes.c_uint64, ctypes.c_uint32, ctypes.c_void_p)
191191

192192
# mmio callback signatures
193-
MMIO_READ_CFUNC = ctypes.CFUNCTYPE(ctypes.c_uint64, uc_engine, ctypes.c_uint64, ctypes.c_int, ctypes.c_void_p)
194-
MMIO_WRITE_CFUNC = ctypes.CFUNCTYPE(None, uc_engine, ctypes.c_uint64, ctypes.c_int, ctypes.c_uint64, ctypes.c_void_p)
193+
MMIO_READ_CFUNC = ctypes.CFUNCTYPE(ctypes.c_uint64, uc_engine, ctypes.c_uint64, ctypes.c_uint, ctypes.c_void_p)
194+
MMIO_WRITE_CFUNC = ctypes.CFUNCTYPE(None, uc_engine, ctypes.c_uint64, ctypes.c_uint, ctypes.c_uint64, ctypes.c_void_p)
195195

196196

197197
class UcError(Exception):

0 commit comments

Comments
 (0)