gbranden pushed a commit to branch master
in repository groff.
commit 3ca7443658c3360d2359bb36c498e20066076774
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Mar 21 08:36:09 2026 -0500
src/roff/troff/input.cpp: Recast warning messages.
* src/roff/troff/input.cpp (substring_request): Recast warning
diagnostics when request argument(s) out of range.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9f1f28d3c..77c5bbb79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-03-21 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (substring_request): Recast warning
+ diagnostics when request argument(s) out of range.
+
2026-03-21 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (substring_request): Trivially
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index fd16fce8b..da60ef984 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5847,13 +5847,13 @@ void substring_request()
}
if (start < 0) {
warning(WARN_RANGE,
- "start index of substring out of range, set to 0");
+ "start index of substring out of range, using 0");
start = 0;
}
if (end >= operable_length) {
warning(WARN_RANGE,
"end index of substring out of range,"
- " set to string length");
+ " using string length");
end = operable_length - 1;
}
// now extract the substring
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit