Skip to content

Commit 0e1985e

Browse files
committed
Reflect on char as u32, not uint (which may be u64).
Fixes rust-lang#4473.
1 parent fbc33e0 commit 0e1985e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/repr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ impl ReprVisitor : TyVisitor {
286286
fn visit_f32() -> bool { self.write::<f32>() }
287287
fn visit_f64() -> bool { self.write::<f64>() }
288288

289-
fn visit_char() -> bool { self.write::<uint>() }
289+
fn visit_char() -> bool { self.write::<u32>() }
290290

291291
// Type no longer exists, vestigial function.
292292
fn visit_str() -> bool { fail; }

0 commit comments

Comments
 (0)