aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-08-22 09:32:17 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-08-22 09:32:17 +0100
commit93810407110178f12a97ea2ba73b481c28bd64ec (patch)
treece1c5f9442bcc5e1252031e65ed9230484eaf00b /src
parent46d4f22ef43a0935e6b6f88091969bd1e3cd4cd2 (diff)
Fix parentheses for raddbg expression
Diffstat (limited to 'src')
-rw-r--r--src/checker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 3f7c54ac6..8ea56a4ba 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -6777,7 +6777,7 @@ gb_internal void handle_raddbg_type_view(Checker *c, RaddbgTypeView const &type_
if (width_ok) {
s = gb_string_appendc(s, "digits(");
- paren_count += 1;
+ custom_rule = true;
}
switch (verb) {
@@ -6816,14 +6816,14 @@ gb_internal void handle_raddbg_type_view(Checker *c, RaddbgTypeView const &type_
custom_rule = true;
}
- if (width_ok) {
- s = gb_string_append_fmt(s, ", %llu", cast(unsigned long long)width);
- }
for (isize j = 0; j < paren_count; j++) {
s = gb_string_appendc(s, ")");
custom_rule = true;
}
+ if (width_ok) {
+ s = gb_string_append_fmt(s, ", %llu)", cast(unsigned long long)width);
+ }
}
}