diff options
author | Bob Ippolito <bob@redivi.com> | 2012-03-06 20:23:20 -0800 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2012-03-06 20:23:20 -0800 |
commit | ed1c14ad163595159a9df8a100b2cfa152180f8c (patch) | |
tree | 8c2d866d3bc4b9eb0c73fd1b807f14c575657ce0 | |
parent | 1544fcc00249096849ee803bd9c1ad021c972ea3 (diff) | |
parent | 907d674e20214b77760878f3b7dc270f167b8d9f (diff) | |
download | simplejson-bigint_as_string-gh31.tar.gz |
Merge remote-tracking branch 'scottkmaxwell/master' into bigint_as_string-gh31bigint_as_string-gh31
-rw-r--r-- | simplejson/_speedups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c index b2fc4fc..a0e5667 100644 --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -176,14 +176,14 @@ maybe_quote_bigint(PyObject *encoded, PyObject *obj) static PyObject *big_long = NULL; static PyObject *small_long = NULL; if (big_long == NULL) { - big_long = PyLong_FromLongLong(1 << 53); + big_long = PyLong_FromLongLong(1LL << 53); if (big_long == NULL) { Py_DECREF(encoded); return NULL; } } if (small_long == NULL) { - small_long = PyLong_FromLongLong(-1 << 53); + small_long = PyLong_FromLongLong(-1LL << 53); if (small_long == NULL) { Py_DECREF(encoded); return NULL; |