# HG changeset patch # User Scott Maxwell <scott@codecobblers.com> # Date 1331081593 28800 # Tue Mar 06 16:53:13 2012 -0800 # Node ID c387652a306e2c46955c1c1e34cf7b59e17b91c9 # Parent cad779581584976c2196b52e0e9f10809fe30bca Change 1 to 1LL to fix warnings Compilers complained about shifting 1 53 times since that exceeded the size. diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -176,14 +176,14 @@ 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;