Skip to content

Commit 0e84907

Browse files
committed
Merge pull request #4477 from jld/char-repr
Reflect on char as u32, not uint (which may be u64).
2 parents d4c9b91 + 0e1985e commit 0e84907

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)