summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/fold/fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fold/fold.c b/lib/fold/fold.c
index 8bf133c..fd23b06 100644
--- a/lib/fold/fold.c
+++ b/lib/fold/fold.c
@@ -34,7 +34,7 @@ void fold_text(const char *text,
bytes = mbrtowc(&wc, end, len - (end - text), &ps);
- assert(bytes >= 0);
+ assert(bytes != (size_t)-1);
/* we'll get a zero size for the nul terminator */
if (!bytes) {
OpenPOWER on IntegriCloud