duke-git / lancet

A comprehensive, efficient, and reusable util function library of Go.

Home Page:https://www.golancet.cn/en/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maximum capacity overflows int

muety opened this issue · comments

I'm getting this error when building for armv7:

/go/pkg/mod/github.com/duke-git/lancet/v2@v2.2.9/random/random.go:126:17: MaximumCapacity (untyped int constant 2147483648) overflows int
/go/pkg/mod/github.com/duke-git/lancet/v2@v2.2.9/random/random.go:127:10: cannot use MaximumCapacity (untyped int constant 2147483648) as int value in return statement (overflows)

See https://github.com/muety/wakapi/actions/runs/8493215002/job/23267048840#step:9:1291.

@muety, this issue was fixed in v2.3.0, try to upgrade lancet to v2.3.0.