aboutsummaryrefslogtreecommitdiff
path: root/src/Sema
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-07-03 18:30:07 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-07-07 22:43:52 -0700
commit30c2921eb87c3157d52edd7d8ee874209a0f7538 (patch)
tree876d4864abe53e1b43afa87b6e0f61572179ff86 /src/Sema
parentd09b99d043cc097de569fb32938a423342490a83 (diff)
downloadzig-30c2921eb87c3157d52edd7d8ee874209a0f7538.tar.gz
zig-30c2921eb87c3157d52edd7d8ee874209a0f7538.zip
compiler: update a bunch of format strings
Diffstat (limited to 'src/Sema')
-rw-r--r--src/Sema/LowerZon.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema/LowerZon.zig b/src/Sema/LowerZon.zig
index 20d0239b16..b55bab127b 100644
--- a/src/Sema/LowerZon.zig
+++ b/src/Sema/LowerZon.zig
@@ -513,7 +513,7 @@ fn lowerInt(
switch (big_int.setFloat(val, .trunc)) {
.inexact => return self.fail(
node,
- "fractional component prevents float value '{}' from coercion to type '{f}'",
+ "fractional component prevents float value '{d}' from coercion to type '{f}'",
.{ val, res_ty.fmt(self.sema.pt) },
),
.exact => {},
@@ -524,7 +524,7 @@ fn lowerInt(
if (!big_int.toConst().fitsInTwosComp(int_info.signedness, int_info.bits)) {
return self.fail(
node,
- "type '{f}' cannot represent integer value '{}'",
+ "type '{f}' cannot represent integer value '{d}'",
.{ res_ty.fmt(self.sema.pt), val },
);
}