From 907d674e20214b77760878f3b7dc270f167b8d9f Mon Sep 17 00:00:00 2001 From: Scott Maxwell Date: Tue, 6 Mar 2012 16:53:13 -0800 Subject: Change 1 to 1LL to fix warnings Compilers complained about shifting 1 53 times since that exceeded the size. --- simplejson/_speedups.c | 4 ++-- 1 file 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; -- cgit v1.2.1