From 411ea962ffb416c6ad0ba64bb5e8d58e23676d4a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 13 Mar 2023 11:32:04 +0100 Subject: [PATCH] Don't assume chan value is int64 in chan_pop() --- src/emu/chan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/emu/chan.c b/src/emu/chan.c index fccfe7c..8ab9ef3 100644 --- a/src/emu/chan.c +++ b/src/emu/chan.c @@ -179,8 +179,10 @@ chan_pop(struct chan *chan, struct value evalue) struct value *value = &stack->values[stack->n - 1]; if (!value_is_equal(value, &evalue)) { - err("%s: unexpected value %ld (expected %ld)", - chan->name, value->i, evalue.i); + err("%s: unexpected value %s (expected %s)", + chan->name, + value_str(*value), + value_str(evalue)); return -1; }