gbranden pushed a commit to branch master
in repository groff.

commit e458091497d0ffb5dac72f9efde430c1412dacd8
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Nov 19 21:53:25 2025 -0600

    [troff]: Fix code style nit.
    
    * src/roff/troff/token.h (token::nspaces): Replace C-style type cast
      with value construction.
---
 ChangeLog              | 5 +++++
 src/roff/troff/token.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 6f0c27f9e..543f64699 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-11-19  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/token.h (token::nspaces): Fix code style nit.
+       Replace C-style type cast with value construction.
+
 2025-11-19  G. Branden Robinson <[email protected]>
 
        [troff]: Trivially refactor.  Rename `skip()` member function of
diff --git a/src/roff/troff/token.h b/src/roff/troff/token.h
index f24b6d8df..41cc3a004 100644
--- a/src/roff/troff/token.h
+++ b/src/roff/troff/token.h
@@ -188,7 +188,7 @@ inline bool token::is_special_character()
 
 inline int token::nspaces()
 {
-  return (int)(type == TOKEN_SPACE);
+  return int(type == TOKEN_SPACE);
 }
 
 inline bool token::is_white_space()

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

Reply via email to