X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdlib%2Fstrtoumax.c;h=a299dc045cd8fcafda41b689e82786aba9b4e129;hp=a2bb4d7dd76393950414f8b5de1f9917a1aa7c76;hb=47d027ee1a44829819c345287623fe75374893ab;hpb=d3fd192523db544e6005051f224a2d7bafabedd9 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; }