From: Matt Joiner Date: Wed, 11 Jul 2018 23:16:40 +0000 (+1000) Subject: Add peer_protocol.Integer.Uint32 X-Git-Tag: v1.0.0~85 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ee985e51cb327077ea7402f931b83a25f8ba71e4;p=btrtrc.git Add peer_protocol.Integer.Uint32 --- 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) +}