-
Notifications
You must be signed in to change notification settings - Fork 137
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
Warnings signed unsigned #366
Conversation
This has been rebased over master and updated to accommodate #407 |
{ | ||
if (nRndPos1 == nRndPos2) | ||
return; | ||
|
||
assert(nRndPos1 >= 0 && nRndPos2 >= 0); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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.
this was in bitcoinrpc.cpp but has been moved since the original patch
This has been rebased over master do to merge conflicts. |
This is part of PR #229