From 33b7f09a959a6470a57631c3848554add4f24a62 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 22 Dec 2015 21:11:58 -0800 Subject: Don't use ~d in several match debug diagnostics. * match.c (h_chr, v_line): Don't try to print clashing binding or object using ~d, because it might not be an integer. --- match.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/match.c b/match.c index ffa249c5..52d7f42c 100644 --- a/match.c +++ b/match.c @@ -1222,7 +1222,7 @@ static val h_chr(match_line_ctx *c) c->bindings = dest_bind(elem, c->bindings, pat, c->pos, eql_f); if (c->bindings == t) { - debuglf(elem, lit("chr mismatch (position ~d vs. ~d)"), c->pos, pat, nao); + debuglf(elem, lit("chr mismatch (position ~d vs. ~s)"), c->pos, pat, nao); return nil; } @@ -3856,7 +3856,7 @@ static val v_line(match_files_ctx *c) c->bindings = dest_bind(specline, c->bindings, pat, c->data_lineno, eql_f); if (c->bindings == t) { - debuglf(specline, lit("line mismatch (line ~d vs. ~d)"), c->data_lineno, pat, nao); + debuglf(specline, lit("line mismatch (line ~d vs. ~s)"), c->data_lineno, pat, nao); return nil; } -- cgit v1.2.3