summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;