gbranden pushed a commit to branch master
in repository groff.
commit b8fc20b5e2e76630cc01884a311a609c90de67d3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Mar 25 22:24:45 2026 -0500
src/devices/grops/ps.cpp: Fix code style nit.
* src/devices/grops/ps.cpp (is_ascii): Produce return value with value
construction syntax instead of a C-style type cast.
---
ChangeLog | 6 ++++++
src/devices/grops/ps.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 57acd41f1..d79cb2654 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-03-25 G. Branden Robinson <[email protected]>
+
+ * src/devices/grops/ps.cpp (is_ascii): Fix code style nit.
+ Produce return value with value construction syntax instead of a
+ C-style type cast.
+
2026-03-25 G. Branden Robinson <[email protected]>
* src/devices/grops/ps.cpp (is_ascii): Boolify.
diff --git a/src/devices/grops/ps.cpp b/src/devices/grops/ps.cpp
index 70a53ceee..a47d16fbc 100644
--- a/src/devices/grops/ps.cpp
+++ b/src/devices/grops/ps.cpp
@@ -103,7 +103,7 @@ static double radians(double d)
static inline bool is_ascii(char c)
{
- return (unsigned char)c < 0200;
+ return (unsigned char)(c) < 0200;
}
ps_output::ps_output(FILE *f, int n)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit