diff options
| author | Artyom Skrobov <tyomitch@gmail.com> | 2021-05-04 03:35:45 -0400 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-02-11 22:55:02 +1100 |
| commit | f46a7140f55a8f6d80f9c2d5f8db7af3de116794 (patch) | |
| tree | 7938222007b43313e02c0883a6a24d1727872ecb /tools/mpy-tool.py | |
| parent | 18b1ba086c0e5547ca81030bf13b026961f80720 (diff) | |
py/qstr: Use `const` consistently to avoid a cast.
Originally at adafruit#4707
Signed-off-by: Artyom Skrobov <tyomitch@gmail.com>
Diffstat (limited to 'tools/mpy-tool.py')
| -rwxr-xr-x | tools/mpy-tool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index 337f580b6..58a4a75c9 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -883,7 +883,7 @@ def freeze_mpy(base_qstrs, raw_codes): print() print("extern const qstr_pool_t mp_qstr_const_pool;") print("const qstr_pool_t mp_qstr_frozen_const_pool = {") - print(" (qstr_pool_t*)&mp_qstr_const_pool, // previous pool") + print(" &mp_qstr_const_pool, // previous pool") print(" MP_QSTRnumber_of, // previous pool size") print(" %u, // allocated entries" % qstr_pool_alloc) print(" %u, // used entries" % len(new)) |
