Browse Source

[PATCH 090/188] writing big u64 as signed 64

From ae0d84b14f391f100fe5c8c34a1dbbaa72722972 Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Tue, 10 Mar 2020 08:46:24 -0400

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

+ 1 - 1
utils/wasmbin/wasmbinwriter.pas

@@ -491,7 +491,7 @@ begin
     //u64 := UInt64(i64)
     //u64 := UInt64(i64)
   end else begin
   end else begin
     Val(operand, u64, err);
     Val(operand, u64, err);
-    if Result then WriteU64(dst, u64);
+    if Result then WriteS64(dst, Int64(u64));
   end;
   end;
   Result := (err = 0);
   Result := (err = 0);
 end;
 end;