gbranden pushed a commit to branch master
in repository groff.
commit 78f0bc1639b1ea093b09dd0d9da7d51a4c23b39f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Nov 11 05:15:52 2026 -0600
src/preproc/tbl/main.cpp: Fix code style nits.
* src/preproc/tbl/main.cpp (process_data): Fix code style nits.
Parenthesize formally complex expressions. Arrange equality
comparison to avoid inadvertent assignment to lvalue.
---
ChangeLog | 6 ++++++
src/preproc/tbl/main.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 9ef73713e..d582b95be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-11-11 G. Branden Robinson <[email protected]>
+
+ * src/preproc/tbl/main.cpp (process_data): Fix code style nits.
+ Parenthesize formally complex expressions. Arrange equality
+ comparison to avoid inadvertent assignment to lvalue.
+
2026-11-10 G. Branden Robinson <[email protected]>
* src/preproc/tbl/main.cpp (process_data): Fix code style nit.
diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index 0521afb4f..1edef78e0 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -1643,7 +1643,7 @@ static table *process_data(table_input &in, format *f,
options *opt)
if (give_up)
break;
}
- if (!give_up && current_row == 0) {
+ if (!give_up && (0 == current_row)) {
error("no data in table");
give_up = true;
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit