summaryrefslogtreecommitdiff
path: root/py/objint.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-02-04 15:32:59 +1100
committerDamien George <damien@micropython.org>2021-02-04 22:46:42 +1100
commit7e956fae28e4e3fdea30f834d448eacfc4429de7 (patch)
tree7404f6f2fda3d8c5533db9d56481cb703714e8b7 /py/objint.c
parent8a41ee19c22d7bb85fcbd90c9d06b9937a1b8c87 (diff)
py: Rename BITS_PER_BYTE to MP_BITS_PER_BYTE.
To give this macro a standard MP_ prefix. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/objint.c')
-rw-r--r--py/objint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint.c b/py/objint.c
index 4619fb575..00375d388 100644
--- a/py/objint.c
+++ b/py/objint.c
@@ -121,7 +121,7 @@ STATIC mp_fp_as_int_class_t mp_classify_fp_as_int(mp_float_t val) {
return MP_FP_CLASS_FIT_SMALLINT;
}
#if MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_LONGLONG
- if (e <= (((sizeof(long long) * BITS_PER_BYTE) + MP_FLOAT_EXP_BIAS - 2) << MP_FLOAT_EXP_SHIFT_I32)) {
+ if (e <= (((sizeof(long long) * MP_BITS_PER_BYTE) + MP_FLOAT_EXP_BIAS - 2) << MP_FLOAT_EXP_SHIFT_I32)) {
return MP_FP_CLASS_FIT_LONGINT;
}
#endif