gbranden pushed a commit to branch master
in repository groff.
commit 6e6c3c9403dcd83724cac58f74f07e807986fc62
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri May 8 20:43:33 2026 -0500
[grotty]: Fix code style nit.
* src/devices/grotty/tty.cpp (tty_font::handle_x_command): Parenthesize
formally complex expressions.
---
ChangeLog | 5 +++++
src/devices/grotty/tty.cpp | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b40c7003c..ca9ed5154 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-05-08 G. Branden Robinson <[email protected]>
+
+ * src/devices/grotty/tty.cpp (tty_font::handle_x_command): Fix
+ code style nit. Parenthesize formally complex expressions.
+
2026-05-07 G. Branden Robinson <[email protected]>
* src/devices/grops/ps.cpp
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index be7140e4b..041bc1c55 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -167,9 +167,9 @@ tty_font::~tty_font()
#if 0
void tty_font::handle_x_command(int argc, const char **argv)
{
- if (argc >= 1 && strcmp(argv[0], "bold") == 0)
+ if ((argc >= 1) && (strcmp(argv[0], "bold") == 0))
mode |= BOLD_MODE;
- else if (argc >= 1 && strcmp(argv[0], "underline") == 0)
+ else if ((argc >= 1) && (strcmp(argv[0], "underline") == 0))
mode |= UNDERLINE_MODE;
}
#endif
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit