-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-35133: [Go] fix for math.MaxUint32 overflows int
error in 32-bit arch
#35159
Conversation
math.MaxUint32 overflows int
error in 32-bit archmath.MaxUint32 overflows int
error in 32-bit arch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! I'll merge this after the CI passes
Benchmark runs are scheduled for baseline = 5605cf5 and contender = becfaf3. becfaf3 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
… arch (#35159) ### Rationale for this change When compiling on i386 arch, an error like `math.MaxUint32 (untyped int constant 4294967295) overflows int` will appear. The Int type is 32-bit and in 32-bit arch it overflows. In my PR, I cast `int` to `unint` to avoid this error. * Closes: #35133 Authored-by: sunpeng <sunpeng.dev@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
…32-bit arch (apache#35159) ### Rationale for this change When compiling on i386 arch, an error like `math.MaxUint32 (untyped int constant 4294967295) overflows int` will appear. The Int type is 32-bit and in 32-bit arch it overflows. In my PR, I cast `int` to `unint` to avoid this error. * Closes: apache#35133 Authored-by: sunpeng <sunpeng.dev@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
…32-bit arch (apache#35159) ### Rationale for this change When compiling on i386 arch, an error like `math.MaxUint32 (untyped int constant 4294967295) overflows int` will appear. The Int type is 32-bit and in 32-bit arch it overflows. In my PR, I cast `int` to `unint` to avoid this error. * Closes: apache#35133 Authored-by: sunpeng <sunpeng.dev@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
…32-bit arch (apache#35159) ### Rationale for this change When compiling on i386 arch, an error like `math.MaxUint32 (untyped int constant 4294967295) overflows int` will appear. The Int type is 32-bit and in 32-bit arch it overflows. In my PR, I cast `int` to `unint` to avoid this error. * Closes: apache#35133 Authored-by: sunpeng <sunpeng.dev@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
Rationale for this change
When compiling on i386 arch, an error like
math.MaxUint32 (untyped int constant 4294967295) overflows int
will appear. The Int type is 32-bit and in 32-bit arch it overflows. In my PR, I castint
tounint
to avoid this error.