gbranden pushed a commit to branch master
in repository groff.
commit d1199f8f89c24d4f81bc11d95583a884c82473a1
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 25 17:56:15 2025 -0500
src/roff/troff/input.cpp: Fix code style nit.
* src/roff/troff/input.cpp (glyph_to_name): Parenthesize formally
complex expression.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 0b87db90a..25de3fb99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-04-26 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (glyph_to_name): Parenthesize
+ formally complex expression.
+
2025-04-25 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (glyph_to_name): Use explicit
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 4a6742d39..e5da0b812 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10406,7 +10406,8 @@ const char *glyph_to_name(glyph *g)
// The `glyph` type is used by libgroff, which doesn't need to know
// about the `charinfo` type.
charinfo *ci = reinterpret_cast<charinfo *>(g);
- return (ci->nm != UNNAMED_SYMBOL ? ci->nm.contents() : 0);
+ return ((ci->nm != UNNAMED_SYMBOL) ? ci->nm.contents()
+ : 0 /* nullptr */);
}
// Local Variables:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit