about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm/tools/emul_lib/libcodenat_tcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/tools/emul_lib/libcodenat_tcc.c b/miasm/tools/emul_lib/libcodenat_tcc.c
index 31167f33..2712dea3 100644
--- a/miasm/tools/emul_lib/libcodenat_tcc.c
+++ b/miasm/tools/emul_lib/libcodenat_tcc.c
@@ -87,7 +87,7 @@ PyObject*  tcc_exec_bloc(PyObject* self, PyObject* args)
 	uint64_t (*func)(void);
 
 	unsigned long ret;
-	if (!PyArg_ParseTuple(args, "i", &func))
+	if (!PyArg_ParseTuple(args, "l", &func))
 		return NULL;
 	ret = func();
 	return PyLong_FromUnsignedLong(ret);