fix: fix again the port of EncodeEndian

This commit is contained in:
Derrick Hammer 2024-01-24 11:51:10 -05:00
parent 047f556d36
commit da57bc1f42
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ package utils
func EncodeEndian(value uint64, length int) []byte {
res := make([]byte, length)
for i := length - 1; i >= 0; i-- {
for i := 0; i < length; i++ {
res[i] = byte(value & 0xff)
value = value >> 8
}