Fix pool to uint from int
This commit is contained in:
@@ -27,7 +27,7 @@ type (
|
||||
)
|
||||
|
||||
func (p *PDU_HEADER) Encode() (*[]uint8, error) {
|
||||
buf := ByteBufferPool.GetBuffer(int(p.Size()))
|
||||
buf := ByteBufferPool.GetBuffer(uint(p.Size()))
|
||||
err := p.EncodeInto(buf)
|
||||
return buf, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user