summaryrefslogtreecommitdiffstatshomepage
path: root/py/objint.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-30 00:38:16 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-30 00:38:16 +0100
commit1c70cbf1510a958c6dd0add5713a71c16e0fea71 (patch)
tree37b069fdcb0ad2fe05f91bd996e0fb348810b781 /py/objint.c
parentecc88e949ca5e307d22da4605a40d39ea2df9e3b (diff)
downloadmicropython-1c70cbf1510a958c6dd0add5713a71c16e0fea71.tar.gz
micropython-1c70cbf1510a958c6dd0add5713a71c16e0fea71.zip
py: Save about 200 bytes of ROM by using smaller type for static table.
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 b0c904bca9..16e868a37b 100644
--- a/py/objint.c
+++ b/py/objint.c
@@ -105,7 +105,7 @@ typedef mp_longint_impl_t fmt_int_t;
typedef mp_int_t fmt_int_t;
#endif
-STATIC const uint log_base2_floor[] = {
+STATIC const uint8_t log_base2_floor[] = {
0,
0, 1, 1, 2,
2, 2, 2, 3,