about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-10-14 09:26:40 +0200
committerserpilliere <devnull@localhost>2011-10-14 09:26:40 +0200
commitda6bd4de7b486e96a65671c20181b092fecca191 (patch)
tree96a5ed69bfb8153f0dbd5942b8e4e2a99af0e548
parenta59442d5fd3f502d45dac5ecb53db96fc3f6f2a2 (diff)
downloadmiasm-da6bd4de7b486e96a65671c20181b092fecca191.tar.gz
miasm-da6bd4de7b486e96a65671c20181b092fecca191.zip
fix 64bit call to tcc funcs
-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);