diff options
author | narimiran <narimiran@disroot.org> | 2019-02-28 19:20:22 +0100 |
---|---|---|
committer | narimiran <narimiran@disroot.org> | 2019-02-28 19:20:22 +0100 |
commit | ec66fd07cbcb6004c728468695c6c15ed78fb623 (patch) | |
tree | cec0a189a2a50b5883be4f44a8125d8cbc091eeb | |
parent | 0b56b3595a52f08d07625616a4a6f793e6d7f98f (diff) | |
download | Nim-ec66fd07cbcb6004c728468695c6c15ed78fb623.tar.gz |
quickfix: make `tsizeof3` also work on 32-bit
-rw-r--r-- | tests/misc/tsizeof3.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/tsizeof3.nim b/tests/misc/tsizeof3.nim index e04ce8a0c..50ad88371 100644 --- a/tests/misc/tsizeof3.nim +++ b/tests/misc/tsizeof3.nim @@ -1,6 +1,6 @@ discard """ output: ''' -[0, 0, 0, 0, 0, 0, 48, 57] +@[48, 57] ''' """ # bug #7238 @@ -16,4 +16,4 @@ proc toByteArrayBE*[T: SomeInteger](num: T): ByteArrayBE[sizeof(T)]= result[i] = byte(num shr ((N-1-i) * 8)) let a = 12345.toByteArrayBE -echo a +echo a[^2 .. ^1] # to make it work on both 32-bit and 64-bit |