Fix devel 32bits (#818)

This commit is contained in:
Ludovic Chenut 2022-12-09 17:23:33 +01:00 committed by GitHub
parent 3863a4cd21
commit a17cad710c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -58,10 +58,7 @@ type
SomeVarint* = PBSomeVarint | LPSomeVarint
SomeUVarint* = PBSomeUVarint | LPSomeUVarint
template toUleb(x: uint64): uint64 = x
template toUleb(x: uint32): uint32 = x
template toUleb(x: uint16): uint16 = x
template toUleb(x: uint8): uint8 = x
template toUleb[T: uint64|uint32|uint16|uint8|uint](x: T): T = x
func toUleb(x: zint64): uint64 =
let v = cast[uint64](x)