Skip to content

Conversation

@blblack
Copy link
Contributor

@blblack blblack commented Feb 19, 2014

The result of (uint - uint) is still a uint (underflow wraps),
and therefore cannot be negative. I assume assert(uint >= uint)
is what was intended.

The result of (uint - uint) is still a uint (underflow wraps),
and therefore cannot be negative.  I assume assert(uint >= uint)
is what was intended.
@edenhill
Copy link
Contributor

Thanks!

edenhill added a commit that referenced this pull request Feb 20, 2014
Avoid unsigned underflow in assert
@edenhill edenhill merged commit 5c13e16 into confluentinc:master Feb 20, 2014
@blblack blblack deleted the assertfix branch June 9, 2014 13:03
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