Skip to content

Fix 32-bit build failure in transaction ID panic - #376

Open
black-desk wants to merge 1 commit into
google:mainfrom
black-desk:fix-32bit-printf
Open

black-desk wants to merge 1 commit into
google:mainfrom
black-desk:fix-32bit-printf

Conversation

@black-desk

Copy link
Copy Markdown
Contributor

Reproduce with:

GOARCH=386 go build ./...

The compiler reports:

./conn.go:538:93: cannot use math.MaxUint32 (untyped int constant 4294967295) as int value in argument to fmt.Sprintf

Convert the value to uint32 before formatting it with %d.

Reproduce with:

    GOARCH=386 go build ./...

The compiler reports:

    ./conn.go:538:93: cannot use math.MaxUint32 (untyped int constant 4294967295) as int value in argument to fmt.Sprintf

Convert the value to uint32 before formatting it with %d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant