1
0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-11-24 05:12:02 +01:00

- Fixed some gcc nagging

This commit is contained in:
Jonas Tärnström 2011-03-01 16:52:48 +01:00
parent 1d238504b0
commit 295ceddb94

@ -7,15 +7,15 @@
void Object_objectAddKey(JSOBJ obj, JSOBJ name, JSOBJ value)
{
PyDict_SetItem (obj, name, value);
Py_DECREF(name);
Py_DECREF(value);
Py_DECREF( (PyObject *) name);
Py_DECREF( (PyObject *) value);
return;
}
void Object_arrayAddItem(JSOBJ obj, JSOBJ value)
{
PyList_Append(obj, value);
Py_DECREF(value);
Py_DECREF( (PyObject *) value);
return;
}
@ -100,7 +100,7 @@ PyObject* JSONToObj(PyObject* self, PyObject *arg)
if (ret)
{
Py_DECREF(ret);
Py_DECREF( (PyObject *) ret);
}
return NULL;