Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Conversation

quickfur
Copy link
Member

@bearophile
Copy link

Is this fit for inclusion in V.2.066?

I'd like similar druntime/Phobos functions to be tested with a QuickCheck-like tool shipped with the standard D distributions:
https://d.puremagic.com/issues/show_bug.cgi?id=13014

@quickfur quickfur changed the title Fix wrong comparison of uint[] due to invalid unsigned subtraction. Fix wrong comparison of uint[]/int[] due to invalid subtraction. Jul 12, 2014
@quickfur
Copy link
Member Author

@zaicheir good catch, the subtraction was OK in terms of sign, but wrong because it can overflow the return value and return the wrong result.

@quickfur
Copy link
Member Author

@zaicheir Oops, you're right, it should be 13073, not 13014

@9rnsr
Copy link
Contributor

9rnsr commented Jul 12, 2014

Auto-merge toggled on

9rnsr added a commit that referenced this pull request Jul 12, 2014
Fix wrong comparison of uint[]/int[] due to invalid subtraction.
@9rnsr 9rnsr merged commit b0920b6 into dlang:master Jul 12, 2014
tramker pushed a commit to tramker/druntime that referenced this pull request Jul 12, 2014
Fix wrong comparison of uint[]/int[] due to invalid subtraction.

Signed-off-by: Martin Krejcirik <mk@krej.cz>
@quickfur quickfur deleted the issue13073 branch July 16, 2014 04:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants