musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdlib/strtoumax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/strtoumax.c')
-rw-r--r--src/stdlib/strtoumax.c 2
1 files changed, 1 insertions, 1 deletions
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;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月01日 06:58:03 +0000

AltStyle によって変換されたページ (->オリジナル) /