Browse Source

[PATCH 161/188] fix writing local variables

From 0af39269ab1988d36606b5da7d958afce583357c Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Fri, 27 Mar 2020 09:54:00 -0400

git-svn-id: branches/wasm@46157 -
nickysn 5 years ago
parent
commit
34e5a15752
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/wasmbin/wasmbinwriter.pas

+ 2 - 2
utils/wasmbin/wasmbinwriter.pas

@@ -473,8 +473,8 @@ begin
 
       WriteU32(dst, length(la));
       for j:=0 to length(la)-1 do begin
-        WriteU32(dst, la[i].count);
-        dst.WriteByte(la[i].tp);
+        WriteU32(dst, la[j].count);
+        dst.WriteByte(la[j].tp);
       end;
       WriteInstList(f.instr, LongWord(dofs-sc.datapos));
       popStream;