Skip to content
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

Cast results of len to uint32 to fix compilation in i386 arch. #961

Merged
merged 3 commits into from
Aug 6, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Aug 2, 2019

GOARCH=386 go build ./ passes with this change and fails without it due
to integer overflow.

Fixes #953


This change is Reviewable

GOARCH=386 go build ./ passes with this change and fails without it due
to integer overflow.

Fixes #953
table/builder.go Outdated Show resolved Hide resolved
Copy link
Contributor Author

@martinmr martinmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @ashish-goswami, @golangcibot, and @manishrjain)


table/builder.go, line 176 at r1 (raw file):

Previously, golangcibot (Bot from GolangCI) wrote…

line is 101 characters (from lll)

Done.

table/builder.go Outdated Show resolved Hide resolved
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r3.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ashish-goswami, @golangcibot, and @martinmr)

@martinmr martinmr merged commit 8783134 into master Aug 6, 2019
@martinmr martinmr deleted the martinmr/fix-386-build branch August 6, 2019 00:02
jarifibrahim pushed a commit that referenced this pull request Aug 9, 2019
GOARCH=386 go build ./ passes with this change and fails without it due
to integer overflow.

Fixes #953
jarifibrahim pushed a commit that referenced this pull request Mar 12, 2020
GOARCH=386 go build ./ passes with this change and fails without it due
to integer overflow.

Fixes #953

(cherry picked from commit 8783134)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Compiling for 32 bit
3 participants