From 74f8a8e38aeefa82a6e7f91a16a655eb94f02a68 Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Mon, 1 Feb 2021 06:11:35 -0600 Subject: [PATCH] let's assume littleEndian in JS backend (#16886) * let's assume littleEndian in JS and VM backend * Update compiler/platform.nim --- compiler/platform.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/platform.nim b/compiler/platform.nim index a4e5f2d7fe..413a913045 100644 --- a/compiler/platform.nim +++ b/compiler/platform.nim @@ -219,7 +219,7 @@ const (name: "mipsel", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32), (name: "arm", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32), (name: "arm64", intSize: 64, endian: littleEndian, floatSize: 64, bit: 64), - (name: "js", intSize: 32, endian: bigEndian,floatSize: 64,bit: 32), + (name: "js", intSize: 32, endian: littleEndian, floatSize: 64, bit: 32), (name: "nimvm", intSize: 32, endian: bigEndian, floatSize: 64, bit: 32), # xxx this seems buggy; on a 64bit machine, sizeof(int) is 64 in nimvm. (name: "avr", intSize: 16, endian: littleEndian, floatSize: 32, bit: 16),