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:
Richard Smith
2023-09-06 22:33:54 +00:00
committed by GitHub
parent 8e8041ab1a
commit 80e307e2ce
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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; }