summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2025-06-24 10:06:58 +0200
committerDamien George <damien@micropython.org>2025-07-25 10:57:54 +1000
commita06857a11ad16a3ca1e22815687c37a5ebd38fb6 (patch)
tree0fce59deb4eb6ab9c6cc73a9681ba2b9037e8c59
parenta1a8eacdce18b953bf16e669b1519b79ca3ab49d (diff)
unix/coverage: Cast type names to qstr explicitly.
Signed-off-by: Jeff Epler <jepler@gmail.com>
-rw-r--r--ports/unix/coverage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/coverage.c b/ports/unix/coverage.c
index 5bd02f6fb..c27198b3b 100644
--- a/ports/unix/coverage.c
+++ b/ports/unix/coverage.c
@@ -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