Skip to content

Commit

Permalink
gometalinter unconvert
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Apr 19, 2017
1 parent e820b1b commit 0c875ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ type Segment struct {
// encode a segment into buffer
func (seg *Segment) encode(ptr []byte) []byte {
ptr = ikcp_encode32u(ptr, seg.conv)
ptr = ikcp_encode8u(ptr, uint8(seg.cmd))
ptr = ikcp_encode8u(ptr, uint8(seg.frg))
ptr = ikcp_encode16u(ptr, uint16(seg.wnd))
ptr = ikcp_encode8u(ptr, seg.cmd)
ptr = ikcp_encode8u(ptr, seg.frg)
ptr = ikcp_encode16u(ptr, seg.wnd)
ptr = ikcp_encode32u(ptr, seg.ts)
ptr = ikcp_encode32u(ptr, seg.sn)
ptr = ikcp_encode32u(ptr, seg.una)
Expand Down

0 comments on commit 0c875ad

Please sign in to comment.