mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix parentheses for raddbg expression
This commit is contained in:
+4
-4
@@ -6777,7 +6777,7 @@ gb_internal void handle_raddbg_type_view(Checker *c, RaddbgTypeView const &type_
|
|||||||
|
|
||||||
if (width_ok) {
|
if (width_ok) {
|
||||||
s = gb_string_appendc(s, "digits(");
|
s = gb_string_appendc(s, "digits(");
|
||||||
paren_count += 1;
|
custom_rule = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (verb) {
|
switch (verb) {
|
||||||
@@ -6816,14 +6816,14 @@ gb_internal void handle_raddbg_type_view(Checker *c, RaddbgTypeView const &type_
|
|||||||
custom_rule = true;
|
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++) {
|
for (isize j = 0; j < paren_count; j++) {
|
||||||
s = gb_string_appendc(s, ")");
|
s = gb_string_appendc(s, ")");
|
||||||
custom_rule = true;
|
custom_rule = true;
|
||||||
}
|
}
|
||||||
|
if (width_ok) {
|
||||||
|
s = gb_string_append_fmt(s, ", %llu)", cast(unsigned long long)width);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user