Skip to content

Commit

Permalink
Use byte literal in libnum
Browse files Browse the repository at this point in the history
  • Loading branch information
nham committed Aug 6, 2014
1 parent daf432e commit 20d1ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libnum/bigint.rs
Expand Up @@ -1376,7 +1376,7 @@ impl BigInt {
if buf.is_empty() { return None; }
let mut sign = Plus;
let mut start = 0;
if buf[0] == ('-' as u8) {
if buf[0] == b'-' {
sign = Minus;
start = 1;
}
Expand Down

0 comments on commit 20d1ad9

Please sign in to comment.