gbranden pushed a commit to branch master
in repository groff.
commit 94f2d75eb964ba185ffb3e496794d901c21699cd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon May 19 21:36:20 2025 -0500
[troff]: Fix code style nit.
* src/roff/troff/div.cpp (do_divert): Assign Boolean, not integer,
literal, to variable of type `bool`.
---
ChangeLog | 6 ++++++
src/roff/troff/div.cpp | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 15933fb35..1fde33ec4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-19 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/div.cpp (do_divert): Fix code style nit.
+ Assign Boolean, not integer, literal, to variable of type
+ `bool`.
+
2025-05-19 G. Branden Robinson <[email protected]>
[troff]: Fix Savannah #67139. Make diversion objects track
diff --git a/src/roff/troff/div.cpp b/src/roff/troff/div.cpp
index 98f5959c8..54058f878 100644
--- a/src/roff/troff/div.cpp
+++ b/src/roff/troff/div.cpp
@@ -138,9 +138,9 @@ void do_divert(bool appending, bool boxing)
curdiv->saved_seen_space = curenv->seen_space;
curdiv->saved_seen_eol = curenv->seen_eol;
curdiv->saved_suppress_next_eol = curenv->suppress_next_eol;
- curenv->seen_break = 0;
- curenv->seen_space = 0;
- curenv->seen_eol = 0;
+ curenv->seen_break = false;
+ curenv->seen_space = false;
+ curenv->seen_eol = false;
if (boxing) {
curdiv->saved_line = curenv->line;
curdiv->saved_width_total = curenv->width_total;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit