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:
Artyom Skrobov
2021-05-04 03:35:45 -04:00
committed by Damien George
parent 18b1ba086c
commit f46a7140f5
3 changed files with 12 additions and 12 deletions

View File

@@ -64,7 +64,7 @@ typedef uint16_t qstr_len_t;
#endif
typedef struct _qstr_pool_t {
struct _qstr_pool_t *prev;
const struct _qstr_pool_t *prev;
size_t total_prev_len;
size_t alloc;
size_t len;