deneonet/benc

[BUG] cross compile on 32bit system met bug

Closed this issue · 4 comments

Describe the bug
A clear and concise description of what the bug is.
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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
}

Hello, thanks for the bug report. I'll fix it on Friday or Saturday.

Hello, thanks for the bug report. I'll fix it on Friday or Saturday.

hello ,sir ,did you fix it?

Sorry for the delay, I am busy currently. Today, I should be able to finish it.

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.