gbranden pushed a commit to branch master
in repository groff.
commit 9d39e921e8e6fbb85668ee10785d7ceb01f216fa
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Apr 13 12:40:39 2026 -0500
src/roff/troff/node.cpp: Fix code style nit.
* src/roff/troff/node.cpp (make_composite_node)
(make_glyph_node): Parenthesize formally complex expressions.
---
ChangeLog | 6 ++++++
src/roff/troff/node.cpp | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 885bcf0b0..1f27f5b02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-13 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/node.cpp (make_composite_node)
+ (make_glyph_node): Fix code style nit. Parenthesize formally
+ complex expressions.
+
2026-04-13 G. Branden Robinson <[email protected]>
* src/roff/troff/node.cpp: Trivially refactor. Rename class
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index b7c8c6a81..7c0b2f2b3 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -5575,7 +5575,7 @@ static node *make_composite_node(charinfo *s, environment
*env)
return 0 /* nullptr */;
}
assert((fontno < font_table_size)
- && font_table[fontno] != 0 /* nullptr*/);
+ && (font_table[fontno] != 0 /* nullptr*/));
node *n = charinfo_to_node_list(s, env);
font_size fs = env->get_font_size();
int char_height = env->get_char_height();
@@ -5596,7 +5596,7 @@ static node *make_glyph_node(charinfo *s, environment
*env,
return 0 /* nullptr */;
}
assert((fontno < font_table_size)
- && font_table[fontno] != 0 /* nullptr*/);
+ && (font_table[fontno] != 0 /* nullptr*/));
int fn = fontno;
bool found = font_table[fontno]->contains(s);
if (!found) {
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit