1
0
mirror of https://github.com/fumiama/unibase2n.git synced 2026-06-27 07:20:32 +08:00

完善 pack

This commit is contained in:
源文雨
2022-09-30 22:10:05 +08:00
parent 74b92c0711
commit 71948481ee
5 changed files with 53 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ func NewBase(off, til uint16, bit uint8) (*Base, error) {
if tile > 0x10000 {
return nil, ErrTailOverflow
}
if tile > uint32(off) || uint32(til) < offe {
if tile > uint32(off) && tile <= offe {
return nil, ErrTailInCodingArea
}
return &Base{