protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

commit 05527b188af2bf322a81fe4d178902047680c684
parent 37590fca05d463c6b5c42085dd52843aea2fc4b7
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  3 Aug 2021 16:29:35 -0700

fix binop type error msg

Diffstat:
Msrc/wasm.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/wasm.c b/src/wasm.c @@ -3080,8 +3080,10 @@ static INLINE int interp_prep_binop(struct wasm_interp *interp, struct val *lhs, return interp_error(interp, "couldn't pop second val"); if (unlikely(lhs->type != typ || rhs->type != typ)) { - return interp_error(interp, "type mismatch, %s != %s", - valtype_name(lhs->type), valtype_name(rhs->type)); + return interp_error(interp, "type mismatch, %s or %s != %s", + valtype_name(lhs->type), + valtype_name(rhs->type), + valtype_name(typ)); } return 1;