Skip to content

Commit

Permalink
Fix devel 32bits (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut authored Dec 9, 2022
1 parent 3863a4c commit a17cad7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libp2p/varint.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a17cad7

Please sign in to comment.