summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2014-05-23 07:10:09 -0700
committerBob Ippolito <bob@redivi.com>2014-05-23 07:10:09 -0700
commit8f1778402eff0dd3107c68116e8cdfcecce29ee4 (patch)
treed74d03193c6d891982c65e02d0ae5fb3f90945d9
parent1c0ea7f4d3c85cee6904b312922fd50e24e08e78 (diff)
parent0ee8ddb5a6a6afaf62b73c76fc0f0d1d770fe33c (diff)
downloadsimplejson-8f1778402eff0dd3107c68116e8cdfcecce29ee4.tar.gz
Merge pull request #97 from mindw/vs2008_build_fx
fix build for VS 2008
-rw-r--r--simplejson/_speedups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index abe8d42..89ecafd 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -2639,7 +2639,7 @@ encoder_init(PyObject *self, PyObject *args, PyObject *kwds)
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;