[BUG] cross compile on 32bit system met bug
Closed this issue · 4 comments
introspection3 commented
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
ok
Golang version:
1.22
BENC version:
v1.0.7
Additional context fix
func verifySize(l int, ms MaxSize) bool {
var ll uint = uint(l)
switch ms {
case MaxSizeUint16:
return ll <= math.MaxUint16
case MaxSizeUint32:
return ll <= math.MaxUint32
case MaxSizeInt64:
return true
}
return false
}
deneonet commented
Hello, thanks for the bug report. I'll fix it on Friday or Saturday.
introspection3 commented
Hello, thanks for the bug report. I'll fix it on Friday or Saturday.
hello ,sir ,did you fix it?
deneonet commented
Sorry for the delay, I am busy currently. Today, I should be able to finish it.
deneonet commented
It's now about a month old and I'm sorry for that, I did a whole restructure and was busy with my life. v1.1.0
should fix your issue. Please let me know if it doesn't.