]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add peer_protocol.Integer.Uint32
authorMatt Joiner <anacrolix@gmail.com>
Wed, 11 Jul 2018 23:16:40 +0000 (09:16 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 11 Jul 2018 23:16:40 +0000 (09:16 +1000)
peer_protocol/int.go

index 6c43da44471c1cb8f709452f6b42fc185fc0df18..a0d7cf898e820a49a96c5f3cb96d042b7bd6589c 100644 (file)
@@ -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)
+}