summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2012-03-06 20:23:20 -0800
committerBob Ippolito <bob@redivi.com>2012-03-06 20:23:20 -0800
commited1c14ad163595159a9df8a100b2cfa152180f8c (patch)
tree8c2d866d3bc4b9eb0c73fd1b807f14c575657ce0
parent1544fcc00249096849ee803bd9c1ad021c972ea3 (diff)
parent907d674e20214b77760878f3b7dc270f167b8d9f (diff)
downloadsimplejson-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.c4
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;