gbranden pushed a commit to branch master
in repository groff.

commit 31e5606fc397c4d75ca43e676fb528890da3d6c3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Nov 12 06:57:47 2025 -0600

    src/preproc/pic/pic.ypp: Slightly refactor.
    
    * src/preproc/pic/pic.ypp (ordinal): Replace C-style type cast with
      value construction.
---
 ChangeLog               | 5 +++++
 src/preproc/pic/pic.ypp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index bb19377db..bbdb00784 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-11-12  G. Branden Robinson <[email protected]>
+
+       * src/preproc/pic/pic.ypp (ordinal): Replace C-style type cast
+       with value construction.
+
 2025-11-10  G. Branden Robinson <[email protected]>
 
        Retire our fmod(3) replacement in favor of gnulib's.  James
diff --git a/src/preproc/pic/pic.ypp b/src/preproc/pic/pic.ypp
index 4bb8a6c57..588034035 100644
--- a/src/preproc/pic/pic.ypp
+++ b/src/preproc/pic/pic.ypp
@@ -1353,7 +1353,7 @@ ordinal:
        | '`' any_expr TH
                {
                  // XXX Check for overflow (and non-integers?).
-                 $$ = (int)$2;
+                 $$ = int($2);
                }
        ;
 

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

Reply via email to