gbranden pushed a commit to branch master
in repository groff.
commit 674a7c6498406a4d6ffb1ff05e47cd7ee5cf2207
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Aug 11 00:55:39 2024 -0500
src/roff/troff/env.cpp: Annotate small weirdness.
---
src/roff/troff/env.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index ca69e38fa..df948e1f7 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3684,7 +3684,7 @@ static void print_hyphenation_exceptions()
// character in a word except the last. The word may have a trailing
// space; see `hyphen_trie::read_patterns_file()`.
const size_t bufsz = WORD_MAX * 2;
- char wordbuf[bufsz];
+ char wordbuf[bufsz]; // need to `errprint()` it, so not `unsigned`
while (iter.get(&entry, reinterpret_cast<void **>(&hypoint))) {
assert(!entry.is_null());
assert(hypoint != 0 /* nullptr */);
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit