mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix: fix wrong byte array length in (*encoder).u32
This commit is contained in:
parent
21ff14fd5c
commit
aba75d5733
@ -76,7 +76,7 @@ func (en *encoder) svarint(v int64) {
|
||||
}
|
||||
|
||||
func (en *encoder) u32(v uint32) {
|
||||
var b [8]byte
|
||||
var b [4]byte
|
||||
binary.LittleEndian.PutUint32(b[:], v)
|
||||
_, _ = en.Write(b[:])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user