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

Warnings signed unsigned #366

Closed
wants to merge 3 commits into from
Closed

Warnings signed unsigned #366

wants to merge 3 commits into from

Conversation

IngCr3at1on
Copy link
Contributor

This is part of PR #229

@IngCr3at1on
Copy link
Contributor Author

This has been rebased over master and updated to accommodate #407

{
if (nRndPos1 == nRndPos2)
return;

assert(nRndPos1 >= 0 && nRndPos2 >= 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this meant to be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, no, either really... They removed it from bitcoin but to be honest I don't see a problem with simply casting 0 to a unsigned integer and keeping it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh right. Happy to leave it removed. Whichever you want :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Honestly I'm not sure why they removed it, it may be safer to retain it and cast the 0 as I said. I'm really not sure.

@IngCr3at1on
Copy link
Contributor Author

This has been rebased over master do to merge conflicts.

@IngCr3at1on IngCr3at1on deleted the warnings-signed-unsigned branch February 19, 2016 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants