mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 22:28:11 +00:00
Fix printing of integer literals with the high bit set. (#3201)
Integer literals are not signed, so don't print them as signed.
This commit is contained in:
1 parent
8e8041ab1a
commit
80e307e2ce
5 files changed
+7
-7
No files matched your search
@@ -674,7 +674,7 @@ class Formatter {
|
||||
auto FormatArg(FunctionId id) -> void { FormatFunctionName(id); }
|
||||
|
||||
auto FormatArg(IntegerLiteralId id) -> void {
|
||||
out_ << semantics_ir_.GetIntegerLiteral(id);
|
||||
semantics_ir_.GetIntegerLiteral(id).print(out_, /*isSigned=*/false);
|
||||
}
|
||||
|
||||
auto FormatArg(MemberIndex index) -> void { out_ << index; }
|
||||
|
||||
Reference in new issue
Block a user