unify and overhaul timed futex waits
[oweals/musl.git] / src / stdlib / strtoumax.c
index a2bb4d7dd76393950414f8b5de1f9917a1aa7c76..a299dc045cd8fcafda41b689e82786aba9b4e129 100644 (file)
@@ -26,7 +26,7 @@ uintmax_t strtoumax(const char *s1, char **p, int base)
 
        if (ip.err) {
                errno = ip.err;
-               if (ip.err = EINVAL) return 0;
+               if (ip.err == EINVAL) return 0;
                return UINTMAX_MAX;
        }