py/qstr: Use const consistently to avoid a cast.
Originally at adafruit#4707 Signed-off-by: Artyom Skrobov <tyomitch@gmail.com>
This commit is contained in:
committed by
Damien George
parent
18b1ba086c
commit
f46a7140f5
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user