unix/coverage: Cast type names to qstr explicitly.
Signed-off-by: Jeff Epler <jepler@gmail.com>
This commit is contained in:
committed by
Damien George
parent
a1a8eacdce
commit
a06857a11a
@@ -218,7 +218,7 @@ static mp_obj_t extra_coverage(void) {
|
||||
}
|
||||
mp_printf(&mp_plat_print, "%p\n", (void *)0x789f); // pointer
|
||||
mp_printf(&mp_plat_print, "%P\n", (void *)0x789f); // pointer uppercase
|
||||
mp_printf(&mp_plat_print, "%.2s %.3s '%4.4s' '%5.5q' '%.3q'\n", "abc", "abc", "abc", MP_QSTR_True, MP_QSTR_True); // fixed string precision
|
||||
mp_printf(&mp_plat_print, "%.2s %.3s '%4.4s' '%5.5q' '%.3q'\n", "abc", "abc", "abc", (qstr)MP_QSTR_True, (qstr)MP_QSTR_True); // fixed string precision
|
||||
mp_printf(&mp_plat_print, "%.*s\n", -1, "abc"); // negative string precision
|
||||
mp_printf(&mp_plat_print, "%b %b\n", 0, 1); // bools
|
||||
#ifndef NDEBUG
|
||||
|
||||
Reference in New Issue
Block a user