X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdlib%2Fstrtoumax.c;h=a299dc045cd8fcafda41b689e82786aba9b4e129;hp=a2bb4d7dd76393950414f8b5de1f9917a1aa7c76;hb=b6dbdc69b6d969b416428e0eb467eefbe5a7837f;hpb=ecc9c5fcfa4831b290cc1a63c0346cbb0c1fcf42 diff --git a/src/stdlib/strtoumax.c b/src/stdlib/strtoumax.c index a2bb4d7d..a299dc04 100644 --- a/src/stdlib/strtoumax.c +++ b/src/stdlib/strtoumax.c @@ -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; }