gbranden pushed a commit to branch master
in repository groff.

commit 170296f486eb70148cb163f33fca657633819110
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jun 6 10:47:58 2026 -0500

    src/libs/libgroff/string.cpp: Fix code style nit.
    
    * src/libs/libgroff/string.cpp (string::remove_spaces): Parenthesize
      formally complex expression.
---
 ChangeLog                    | 5 +++++
 src/libs/libgroff/string.cpp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 3dd3761da..6dd6761e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-06-06  G. Branden Robinson <[email protected]>
+
+       * src/libs/libgroff/string.cpp (string::remove_spaces): Fix code
+       style nit.  Parenthesize formally complex expression.
+
 2026-06-06  G. Branden Robinson <[email protected]>
 
        * src/libs/libgroff/string.cpp: Back all strings with clean
diff --git a/src/libs/libgroff/string.cpp b/src/libs/libgroff/string.cpp
index e81667b5b..9f5cbbf8b 100644
--- a/src/libs/libgroff/string.cpp
+++ b/src/libs/libgroff/string.cpp
@@ -450,7 +450,7 @@ void string::remove_spaces()
       p++;
       l--;
     }
-  if (len - 1 != l) {
+  if ((len - 1) != l) {
     len = l + 1;
     char *tmp = 0 /* nullptr */;
     assert(sz > 0);

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

Reply via email to