diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2016-08-24 15:58:40 +0300 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2016-12-30 15:17:25 +0100 |
| commit | 64de4e2731cff74e0c4b81d9389734dee7229db2 (patch) | |
| tree | cb6d6b205569301fc451466f549ffa00aafc6e17 /src/libsyntax | |
| parent | 4e2b946e6539b4866c672cda6958fc1a2fe80687 (diff) | |
| download | rust-64de4e2731cff74e0c4b81d9389734dee7229db2.tar.gz rust-64de4e2731cff74e0c4b81d9389734dee7229db2.zip | |
Fix LEB128 to work with the stage1
Stage 1 can’t really handle negative 128-bit literals, but an equivalent bit-not is fine
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 60402fe1a66..da4b787160f 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1201,8 +1201,8 @@ impl IntTy { } pub fn val_to_string(&self, val: i128) -> String { - // cast to a u64 so we can correctly print INT64_MIN. All integral types - // are parsed as u64, so we wouldn't want to print an extra negative + // cast to a u128 so we can correctly print INT128_MIN. All integral types + // are parsed as u128, so we wouldn't want to print an extra negative // sign. format!("{}{}", val as u128, self.ty_to_string()) } |
