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

fix build on 32-bit platforms and properly error on too small worksizes #70

Merged
merged 1 commit into from
Aug 26, 2016
Merged

fix build on 32-bit platforms and properly error on too small worksizes #70

merged 1 commit into from
Aug 26, 2016

Conversation

jolan
Copy link

@jolan jolan commented Aug 26, 2016

Building on 32-bit platforms doesn't work due to the untyped maxWorkSize constant:

./config.go:39: constant 4294967295 overflows int

This types it properly so it builds and runs. I also set it to a value that is divisible by 256 with no remainder so if someone hits the error, they can just plug in the value from the error string.

I also fixed it to catch -W 0 since I noticed that wasn't caught properly during my testing.

@jcvernaleo
Copy link
Member

I don't care too much about 32bit builds (I'd actually prefer to not provide/support 32bit at all) but this looks more correct than what we had before. And works fine when I test.

tACK

@jolan jolan merged commit 6a68c00 into decred:master Aug 26, 2016
@jolan jolan deleted the jolan_fix32bit branch August 26, 2016 16:01
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.

2 participants