mirror of
https://github.com/fumiama/go-base16384.git
synced 2026-06-27 07:30:29 +08:00
fix generic decode panic
This commit is contained in:
@@ -105,9 +105,9 @@ func Decode(b []byte) (decd []byte) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
outlen = outlen/8*7 + offset
|
outlen = outlen/8*7 + offset
|
||||||
decd = make([]byte, outlen)
|
decd = make([]byte, outlen+1)
|
||||||
decode(offset, outlen, b, decd)
|
decode(offset, outlen, b, decd)
|
||||||
return
|
return decd[:outlen]
|
||||||
}
|
}
|
||||||
|
|
||||||
//go:nosplit
|
//go:nosplit
|
||||||
|
|||||||
Reference in New Issue
Block a user