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

stake: less casting #705

Merged
merged 1 commit into from
Jul 18, 2017
Merged

stake: less casting #705

merged 1 commit into from
Jul 18, 2017

Conversation

dajohi
Copy link
Member

@dajohi dajohi commented May 24, 2017

No description provided.

Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

I'm actually not very happy with the use of int in consensus code because it's 32-bit on 32-bit platforms, and 64-bit on 64-bit platforms and that can lead to forking conditions.

It is acceptable in this particular case however since the second parameters is always the constant from the chain params and the size was being casted from an int anyways.

OK

@davecgh davecgh merged commit dfbedbd into decred:master Jul 18, 2017
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