diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-09-15 21:12:36 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-09-15 21:12:36 +0200 |
commit | 0fe2a83dda25d682f04f7af0f73a50c45362c79f (patch) | |
tree | 9bc15d6b8f7acb7bb9fd3583da93296199c8364e /tests | |
parent | 053b0ad6f301ade2d3627abed66a6f48a72aa05b (diff) | |
download | Nim-0fe2a83dda25d682f04f7af0f73a50c45362c79f.tar.gz |
make tests green again
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc/tvarnums.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/tvarnums.nim b/tests/misc/tvarnums.nim index 04a1ef53b..4cc10d66a 100644 --- a/tests/misc/tvarnums.nim +++ b/tests/misc/tvarnums.nim @@ -8,7 +8,7 @@ import strutils type - TBuffer = array [0..10, int8] + TBuffer = array[0..10, int8] proc toVarNum(x: int32, b: var TBuffer) = # encoding: first bit indicates end of number (0 if at end) @@ -67,7 +67,7 @@ proc toNum64(b: TBuffer): int64 = proc toNum(b: TBuffer): int32 = # treat first byte different: - result = ze(b[0]) and 63 + result = ze(b[0]).int32 and 63i32 var i = 0 Shift = 6'i32 |