make tests green again

This commit is contained in:
Andreas Rumpf 2017-09-15 21:12:36 +02:00
commit 0fe2a83dda

View file

@ -8,7 +8,7 @@ import
strutils strutils
type type
TBuffer = array [0..10, int8] TBuffer = array[0..10, int8]
proc toVarNum(x: int32, b: var TBuffer) = proc toVarNum(x: int32, b: var TBuffer) =
# encoding: first bit indicates end of number (0 if at end) # 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 = proc toNum(b: TBuffer): int32 =
# treat first byte different: # treat first byte different:
result = ze(b[0]) and 63 result = ze(b[0]).int32 and 63i32
var var
i = 0 i = 0
Shift = 6'i32 Shift = 6'i32