gbranden pushed a commit to branch master
in repository groff.
commit 5a3faff0b7515fd07c8ef9afa28b79b1d3331b4d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu May 15 12:41:15 2025 -0500
src/roff/troff/input.cpp: Fix code style nit 3/3.
* src/roff/troff/input.cpp (charinfo::charinfo)
(charinfo::get_unicode_code): Fix code style nit. Use unsigned
integer literals when initializing and comparing to character flags,
"ASCII codes", and "asciify codes" which are of type `unsigned int`.
---
ChangeLog | 3 ++-
src/roff/troff/input.cpp | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index be0650cf8..de98b363e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,8 @@
* src/roff/troff/input.cpp (charinfo::charinfo)
(charinfo::get_unicode_code): Fix code style nit. Use unsigned
integer literals when initializing and comparing to character
- flags and "ASCII codes", which are of type `unsigned int`.
+ flags, "ASCII codes", and "asciify codes" which are of type
+ `unsigned int`.
2025-05-15 G. Branden Robinson <[email protected]>
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 43c3e4bb9..3c2335e53 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(0U), ascii_code(0U), asciify_code(0),
+ flags(0U), ascii_code(0U), asciify_code(0U),
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