diff --git a/python/objToJSON.c b/python/objToJSON.c index 2a09c35..50b7e0c 100644 --- a/python/objToJSON.c +++ b/python/objToJSON.c @@ -802,7 +802,7 @@ PyObject* objToJSON(PyObject* self, PyObject *args, PyObject *kwargs) PyObject *newobj; PyObject *oinput = NULL; PyObject *oensureAscii = NULL; - int idoublePrecision = 10; // default double precision setting + static const int idoublePrecision = 10; // default double precision setting PyObject *oencodeHTMLChars = NULL; JSONObjectEncoder encoder =