Skip to content

Commit

Permalink
Fix compiler panic
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Mar 6, 2015
1 parent 70661d5 commit f965a37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ where T: Float + Num {
pub fn sin(self) -> Self {
let x2 = self * self;

let mut ret = (1..500_000).fold(self, |acc, i| {
let mut ret = (1u64..500_000).fold(self, |acc, i| {
let mul: T = cast(2*i * (2*i + 1)).unwrap();
let int = Interval::exact(mul);
let mul = x2 / int;
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
//!
//! Created as part of Numerical Analysis at Computer Engineering classes at PUT
#![feature(core)]
#![feature(libc)]
#![feature(core, libc)]

extern crate num;
extern crate libc;
Expand Down

0 comments on commit f965a37

Please sign in to comment.