Use byte literal in libnum

This commit is contained in:
nham 2014-08-06 01:29:26 -04:00
parent daf432e8b6
commit 20d1ad9b59

View File

@ -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;
}