Merge pull request #155 from mrd0ll4r/middleware-smallfix

hotfix: fixed bencode
This commit is contained in:
Justin Li 2016-04-02 21:56:42 -04:00
commit 07d79b2d56

View file

@ -68,6 +68,12 @@ func marshal(w io.Writer, data interface{}) error {
case uint16:
marshalUint(w, uint64(v))
case int32:
marshalInt(w, int64(v))
case uint32:
marshalUint(w, uint64(v))
case int64:
marshalInt(w, v)