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

Fix i128_support in range.rs #14

Merged
merged 2 commits into from
Oct 21, 2017
Merged

Conversation

pitdicker
Copy link

I broke i128_support...

@pitdicker
Copy link
Author

And I broke the benchmarks while removing the range2 module. Not my best day...

($fnn:ident, $ty:ty, $low:expr, $high:expr) => {
#[bench]
fn $fnn(b: &mut Bencher) {
let mut rng = XorShiftRng::new().unwrap();
let distr = range2::Range::new($low, $high);
let distr = range::Range::new($low, $high);
Copy link
Owner

Choose a reason for hiding this comment

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

This can probably be just Range::new now. IIRC the only reason for the prefix was because to avoid confusion with the old range::Range.

Copy link
Author

Choose a reason for hiding this comment

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

Good catch

@dhardy dhardy merged commit d511022 into dhardy:master Oct 21, 2017
@pitdicker pitdicker deleted the fix_i128_support branch October 21, 2017 14:02
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