From ee985e51cb327077ea7402f931b83a25f8ba71e4 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 12 Jul 2018 09:16:40 +1000 Subject: [PATCH] Add peer_protocol.Integer.Uint32 --- peer_protocol/int.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/peer_protocol/int.go b/peer_protocol/int.go index 6c43da44..a0d7cf89 100644 --- a/peer_protocol/int.go +++ b/peer_protocol/int.go @@ -19,3 +19,7 @@ func (i Integer) Int() int { func (i Integer) Uint64() uint64 { return uint64(i) } + +func (i Integer) Uint32() uint32 { + return uint32(i) +} -- 2.48.1