diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-06-25 10:03:29 -0400 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-25 10:03:29 -0400 |
commit | 66c83483f880c87e44c57617bec2615e945cce14 (patch) | |
tree | 76c0b96620c814f0ff7f8e4e34cb181d3d1bc613 | |
parent | b663d6ae99294a0825f4e1b11c5b3110d56bc65f (diff) | |
parent | 8524f2b2c2702b44c1deb14291b273572e98f3de (diff) | |
download | milf-rs-66c83483f880c87e44c57617bec2615e945cce14.tar.gz milf-rs-66c83483f880c87e44c57617bec2615e945cce14.zip |
Merge pull request #2 from dtrebbien/patch-integer-suffix-fix
Fix "error: cannot determine the type of this integer"
-rw-r--r-- | src/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.rs b/src/parser.rs index 29de39b..389d27d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -406,12 +406,12 @@ impl<'a> Parser<'a> { fn boolean(&mut self, start: uint) -> Option<Value> { let rest = self.input.slice_from(start); if rest.starts_with("true") { - for _ in range(0, 4) { + for _ in range(0u, 4u) { self.cur.next(); } Some(Boolean(true)) } else if rest.starts_with("false") { - for _ in range(0, 5) { + for _ in range(0u, 5u) { self.cur.next(); } Some(Boolean(false)) @@ -429,7 +429,7 @@ impl<'a> Parser<'a> { fn datetime(&mut self, start: uint, end_so_far: uint) -> Option<Value> { let mut date = self.input.slice(start, end_so_far).to_string(); - for _ in range(0, 15) { + for _ in range(0u, 15u) { match self.cur.next() { Some((_, ch)) => date.push_char(ch), None => { |