aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-19 20:33:46 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-20 00:24:19 +0100
commitb2ab0659fad23fa916505afce07beb277fb0ced9 (patch)
treeae3596163d476c20326bff98590097e840451f98 /src/parser.c
parentdaa46b24452c2c2eb817170d48a6585bec3c919e (diff)
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.
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
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