]> git.draconx.ca Git - cdecl99.git/blobdiff - src/error.c
libcdecl: Replace uintmax_t with unsigned (long) long.
[cdecl99.git] / src / error.c
index a2d705a8d15885f8e8d20986c5f99098a48bb786..94987af6a90f3a7eb83ce661a4d87b3c75efb7a8 100644 (file)
@@ -180,7 +180,7 @@ void cdecl__err(const char *fmt, const char *arg)
 retry:
        rc = fmt_err(state, fmt, arg);
        if (rc >= state->nstr) {
-               assert(try++ == 0 && rc < SIZE_MAX / 4);
+               assert(try++ == 0 && rc < (size_t)-1 / 4);
 
                state = alloc_err_state(state, (size_t)(rc+1u) * 3 / 2);
                if (!state)