2
0
Эх сурвалжийг харах

* fix for the stack tracking in twasmaddnode.second_addboolean

git-svn-id: branches/wasm@48056 -
nickysn 5 жил өмнө
parent
commit
97430823cf

+ 1 - 0
compiler/wasm32/nwasmadd.pas

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