diff options
author | Bob Ippolito <bob@redivi.com> | 2016-02-14 12:30:55 -0800 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2016-02-15 09:51:34 -0800 |
commit | 8aaf1ca7d6cda799997815591c1c82e70c51a633 (patch) | |
tree | c0a3471da60ae560dc1f43f0ffabfdbbff6b40e0 /simplejson/_speedups.c | |
parent | 60227944e9879362f9a4e09dfaae605273cdfc8c (diff) | |
download | simplejson-8aaf1ca7d6cda799997815591c1c82e70c51a633.tar.gz |
Diffstat (limited to 'simplejson/_speedups.c')
-rw-r--r-- | simplejson/_speedups.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c index 173c5e1..9976464 100644 --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -2654,7 +2654,7 @@ encoder_init(PyObject *self, PyObject *args, PyObject *kwds) if (PyInt_Check(int_as_string_bitcount) || PyLong_Check(int_as_string_bitcount)) { static const unsigned int long_long_bitsize = SIZEOF_LONG_LONG * 8; int int_as_string_bitcount_val = (int)PyLong_AsLong(int_as_string_bitcount); - if (int_as_string_bitcount_val > 0 && int_as_string_bitcount_val < long_long_bitsize) { + if (int_as_string_bitcount_val > 0 && int_as_string_bitcount_val < (int)long_long_bitsize) { 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) { |