gbranden pushed a commit to branch master
in repository groff.

commit c0030ad7d141eefb875b0fe4fcd7e32dd9051724
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Dec 13 15:26:24 2025 -0600

    [troff]: Continue fixing Savannah #67735.
    
    * src/roff/troff/input.cpp
      (non_interpreted_char_node::non_interpreted_char_node): Fix code style
      nit.  Migrate input character handling constructor to deal in the type
      `unsigned char` rather than `char`.  Use explicitly unsigned literal
      in comparison.
    
    Continues the long process of fixing Savannah #67735.
---
 ChangeLog                | 10 ++++++++++
 src/roff/troff/input.cpp |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 207c765c2..59781c949 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2025-12-13  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp
+       (non_interpreted_char_node::non_interpreted_char_node): Fix code
+       style nit.  Migrate input character handling constructor to deal
+       in the type `unsigned char` rather than `char`.  Use explicitly
+       unsigned literal in comparison.
+
+       Continues the long process of fixing Savannah #67735.
+
 2025-12-13  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (process_input_stack): Fix code style
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 16b0feba1..980f9dedf 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -1328,7 +1328,7 @@ bool non_interpreted_char_node::is_tag()
 
 non_interpreted_char_node::non_interpreted_char_node(unsigned char cc) : c(cc)
 {
-  assert(cc != 0);
+  assert(cc != 0U);
 }
 
 void non_interpreted_char_node::asciify(macro *)

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to