# HG changeset patch # User Gabi Davar <grizzly.nyo@gmail.com> # Date 1400838670 -10800 # Fri May 23 12:51:10 2014 +0300 # Node ID e7f4b3a3d0b8dd420d2b1b6cdc2666bc3f2c3f64 # Parent 57ae20fdf8f921b0e8172c0665ed71fbf14cd86c fix build for VS 2008 diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -2639,7 +2639,7 @@ static const unsigned int long_long_bitsize = SIZEOF_LONG_LONG * 8; int int_as_string_bitcount_val = PyLong_AsLong(int_as_string_bitcount); if (int_as_string_bitcount_val > 0 && int_as_string_bitcount_val < long_long_bitsize) { - s->max_long_size = PyLong_FromUnsignedLongLong(1LLU << int_as_string_bitcount_val); + s->max_long_size = PyLong_FromUnsignedLongLong(1ULL << int_as_string_bitcount_val); s->min_long_size = PyLong_FromLongLong(-1LL << int_as_string_bitcount_val); if (s->min_long_size == NULL || s->max_long_size == NULL) { return -1;