diff options
author | Scott Maxwell <scott@codecobblers.com> | 2012-03-06 16:53:13 -0800 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2012-03-06 16:53:13 -0800 |
commit | 907d674e20214b77760878f3b7dc270f167b8d9f (patch) | |
tree | 8c2d866d3bc4b9eb0c73fd1b807f14c575657ce0 | |
parent | 1544fcc00249096849ee803bd9c1ad021c972ea3 (diff) | |
download | simplejson-907d674e20214b77760878f3b7dc270f167b8d9f.tar.gz |
Change 1 to 1LL to fix warnings
Compilers complained about shifting 1 53 times since that exceeded the size.
-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; |