mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-29 11:34:58 +01: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:
@@ -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