Fix pool to uint from int

This commit is contained in:
PhatPhuckDave
2024-07-23 09:31:26 +02:00
parent f00dcafac4
commit c73a6066c4
3 changed files with 16 additions and 16 deletions

View File

@@ -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
}