commit fc5d1744513d93974cfa3b4add74cc1bc45994fd
parent 6f4d61291adbd973a05314fa8ad435213aab6e09
Author: William Casarin <jb55@jb55.com>
Date: Thu, 22 Jul 2021 15:11:07 -0700
fix local resolver check
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/wasm.c b/src/wasm.c
@@ -2987,7 +2987,11 @@ static INLINE int drop_callframe(struct wasm_interp *interp)
{
int count, offset;
- if (!count_local_resolvers(interp, &count) != 0) {
+ if (!count_local_resolvers(interp, &count)) {
+ return interp_error(interp, "count local resolvers");
+ }
+
+ if (count != 0) {
return interp_error(interp, "unclean callframe drop, still have"
" %d unpopped labels", count);
}