Commit 3a9aaef3 by Victor M. Alvarez

Fix warnings

parent 88a5a5a1
Subproject commit f502bdf4903545cfc75dfe15bed650138da53a81 Subproject commit 09b52935653d0b2e836b9a58fde81074106a84e1
...@@ -490,7 +490,7 @@ int yara_callback( ...@@ -490,7 +490,7 @@ int yara_callback(
if (meta->type == META_TYPE_INTEGER) if (meta->type == META_TYPE_INTEGER)
object = Py_BuildValue("i", meta->integer); object = Py_BuildValue("i", meta->integer);
else if (meta->type == META_TYPE_BOOLEAN) else if (meta->type == META_TYPE_BOOLEAN)
object = PyBool_FromLong(meta->integer); object = PyBool_FromLong((long) meta->integer);
else else
object = PY_STRING(meta->string); object = PY_STRING(meta->string);
...@@ -1045,7 +1045,7 @@ static PyObject* Rules_next( ...@@ -1045,7 +1045,7 @@ static PyObject* Rules_next(
if (meta->type == META_TYPE_INTEGER) if (meta->type == META_TYPE_INTEGER)
object = Py_BuildValue("i", meta->integer); object = Py_BuildValue("i", meta->integer);
else if (meta->type == META_TYPE_BOOLEAN) else if (meta->type == META_TYPE_BOOLEAN)
object = PyBool_FromLong(meta->integer); object = PyBool_FromLong((long) meta->integer);
else else
object = PY_STRING(meta->string); object = PY_STRING(meta->string);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment