Skip to content

Commit a3b655f

Browse files
committed
Fix uint/u64 confusion
Causes a failure on 32-bit platforms
1 parent 1e52662 commit a3b655f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/u64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn from_str(buf: str, radix: u64) -> option<u64> {
122122
let i = str::len_bytes(buf) - 1u;
123123
let power = 1u64, n = 0u64;
124124
while true {
125-
alt char::to_digit(buf[i] as char, radix) {
125+
alt char::to_digit(buf[i] as char, radix as uint) {
126126
some(d) { n += d as u64 * power; }
127127
none { ret none; }
128128
}

0 commit comments

Comments
 (0)