gbranden pushed a commit to branch master
in repository groff.
commit 9b3989f7bdbb9691058bb99afcfe9d2d1af95583
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu May 15 12:35:12 2025 -0500
src/roff/troff/input.cpp: Fix code style nit 1/3.
* src/roff/troff/input.cpp (charinfo::charinfo): Fix code style nit.
Use unsigned integer literal when initializing character flags, which
are of type `unsigned int`.
---
ChangeLog | 6 ++++++
src/roff/troff/input.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 8136c1b4a..42781fc40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-15 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (charinfo::charinfo): Fix code style
+ nit. Use unsigned integer literal when initializing character
+ flags, which are of type `unsigned int`.
+
2025-05-15 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (exit_troff)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 43e86d9bd..d63e6b114 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10158,7 +10158,7 @@ int charinfo::next_index = 0;
charinfo::charinfo(symbol s)
: translation(0 /* nullptr */), mac(0 /* nullptr */),
special_translation(TRANSLATE_NONE), hyphenation_code(0U),
- flags(0), ascii_code(0), asciify_code(0),
+ flags(0U), ascii_code(0), asciify_code(0),
is_not_found(false), is_transparently_translatable(true),
translatable_as_input(false), mode(CHAR_NORMAL), nm(s)
{
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit