Don't assume chan value is int64 in chan_pop()

This commit is contained in:
Rodrigo Arias 2023-03-13 11:32:04 +01:00 committed by Rodrigo Arias Mallo
parent f61711047c
commit 411ea962ff

View File

@ -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;
}