Skip to content

Commit 20d1ad9

Browse files
committed
Use byte literal in libnum
1 parent daf432e commit 20d1ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libnum/bigint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ impl BigInt {
13761376
if buf.is_empty() { return None; }
13771377
let mut sign = Plus;
13781378
let mut start = 0;
1379-
if buf[0] == ('-' as u8) {
1379+
if buf[0] == b'-' {
13801380
sign = Minus;
13811381
start = 1;
13821382
}

0 commit comments

Comments
 (0)