1
0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-09-20 19:32:05 +02:00

Make idoublePrecision a true constant

Some older compilers might complain about
idoublePrecision not being a constant when
referenced inside the array declaration.
This commit is contained in:
Romulo A. Ceccon 2013-09-26 17:06:08 -03:00
parent 5d157b4c29
commit 28b3bb371f

View File

@ -802,7 +802,7 @@ PyObject* objToJSON(PyObject* self, PyObject *args, PyObject *kwargs)
PyObject *newobj; PyObject *newobj;
PyObject *oinput = NULL; PyObject *oinput = NULL;
PyObject *oensureAscii = NULL; PyObject *oensureAscii = NULL;
int idoublePrecision = 10; // default double precision setting static const int idoublePrecision = 10; // default double precision setting
PyObject *oencodeHTMLChars = NULL; PyObject *oencodeHTMLChars = NULL;
JSONObjectEncoder encoder = JSONObjectEncoder encoder =