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:
parent
5d157b4c29
commit
28b3bb371f
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user