summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-13 22:55:51 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-13 22:55:51 +0000
commit10d2f72860efa611b48de8c6d8a52ffa8309a1c3 (patch)
tree7f1952ea7e7b84f53877208db42e903e7cbd79b5 /py/mpconfig.h
parent95499193497ce1fd15de217f7b69fc2f91a37dbf (diff)
parentca318bba0d97c66d8fb14a089d8fa269a0e1b424 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index ada4aa2ea..5d8c57692 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -91,7 +91,7 @@ typedef long long mp_longint_impl_t;
#define BITS_PER_BYTE (8)
#define BITS_PER_WORD (BITS_PER_BYTE * BYTES_PER_WORD)
// machine_int_t value with most significant bit set
-#define WORD_MSBIT_HIGH (1 << (BYTES_PER_WORD * 8 - 1))
+#define WORD_MSBIT_HIGH (((machine_uint_t)1) << (BYTES_PER_WORD * 8 - 1))
// printf format spec to use for machine_int_t and friends
#ifndef INT_FMT