Merge pull request #155 from mrd0ll4r/middleware-smallfix
hotfix: fixed bencode
This commit is contained in:
commit
07d79b2d56
1 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,12 @@ func marshal(w io.Writer, data interface{}) error {
|
||||||
case uint16:
|
case uint16:
|
||||||
marshalUint(w, uint64(v))
|
marshalUint(w, uint64(v))
|
||||||
|
|
||||||
|
case int32:
|
||||||
|
marshalInt(w, int64(v))
|
||||||
|
|
||||||
|
case uint32:
|
||||||
|
marshalUint(w, uint64(v))
|
||||||
|
|
||||||
case int64:
|
case int64:
|
||||||
marshalInt(w, v)
|
marshalInt(w, v)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue