Skip to content

Commit a06857a

Browse files
jeplerdpgeorge
authored andcommitted
unix/coverage: Cast type names to qstr explicitly.
Signed-off-by: Jeff Epler <[email protected]>
1 parent a1a8eac commit a06857a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/unix/coverage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static mp_obj_t extra_coverage(void) {
218218
}
219219
mp_printf(&mp_plat_print, "%p\n", (void *)0x789f); // pointer
220220
mp_printf(&mp_plat_print, "%P\n", (void *)0x789f); // pointer uppercase
221-
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
221+
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
222222
mp_printf(&mp_plat_print, "%.*s\n", -1, "abc"); // negative string precision
223223
mp_printf(&mp_plat_print, "%b %b\n", 0, 1); // bools
224224
#ifndef NDEBUG

0 commit comments

Comments
 (0)