diff --git a/yara b/yara index f502bdf..09b5293 160000 --- a/yara +++ b/yara @@ -1 +1 @@ -Subproject commit f502bdf4903545cfc75dfe15bed650138da53a81 +Subproject commit 09b52935653d0b2e836b9a58fde81074106a84e1 diff --git a/yara-python.c b/yara-python.c index bd1544d..0113278 100644 --- a/yara-python.c +++ b/yara-python.c @@ -490,7 +490,7 @@ int yara_callback( if (meta->type == META_TYPE_INTEGER) object = Py_BuildValue("i", meta->integer); else if (meta->type == META_TYPE_BOOLEAN) - object = PyBool_FromLong(meta->integer); + object = PyBool_FromLong((long) meta->integer); else object = PY_STRING(meta->string); @@ -1045,7 +1045,7 @@ static PyObject* Rules_next( if (meta->type == META_TYPE_INTEGER) object = Py_BuildValue("i", meta->integer); else if (meta->type == META_TYPE_BOOLEAN) - object = PyBool_FromLong(meta->integer); + object = PyBool_FromLong((long) meta->integer); else object = PY_STRING(meta->string);