Browse Source

* fix for the stack tracking in twasmaddnode.second_addboolean

git-svn-id: branches/wasm@48056 -
nickysn 4 years ago
parent
commit
97430823cf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/wasm32/nwasmadd.pas

+ 1 - 0
compiler/wasm32/nwasmadd.pas

@@ -278,6 +278,7 @@ interface
                    // inside of ELSE (the condition evaluated as false)
                    // for "and" must end evaluation immediately
                    current_asmdata.CurrAsmList.Concat( taicpu.op_const(a_i32_const, 0) );
+                   thlcgwasm(hlcg).incstack(current_asmdata.CurrAsmList,1);
                    current_asmdata.CurrAsmList.Concat( taicpu.op_none(a_end_if) );
                    thlcgwasm(hlcg).decblock;
                 end;