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 authored and GitHub committed 2023-09-06 22:33:54 +00:00
1 parent 8e8041ab1a
commit 80e307e2ce
5 files changed
+7 -7

No files matched your search

+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; }