From b2ab0659fad23fa916505afce07beb277fb0ced9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 19 Nov 2026 20:33:46 +0100 Subject: use G_GSIZE_FORMAT: prevents warnings on platforms where gsize is not size_t This was observed on OmniOS i386, where it is probably a misconfiguration of glib. I also had to replace one reference of g_ascii_strncasecmp() with libc's strncasecmp() because of the type mismatch. --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index 28f6fd8..3a5508a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -123,7 +123,7 @@ teco_machine_main_step(teco_machine_main_t *ctx, const gchar *macro, gsize stop_ gunichar chr = g_utf8_get_char(macro+ctx->macro_pc); #ifdef DEBUG - g_printf("EXEC(%zu): input='%C' (U+%04" G_GINT32_MODIFIER "X), state=%p, mode=%d\n", + g_printf("EXEC(%" G_GSIZE_FORMAT "): input='%C' (U+%04" G_GINT32_MODIFIER "X), state=%p, mode=%d\n", ctx->macro_pc, chr, chr, ctx->parent.current, ctx->flags.mode); #endif -- cgit v1.3