We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f16fcbc + 778862f commit cfe22c9Copy full SHA for cfe22c9
ui/utils.c
@@ -80,7 +80,7 @@ int strtoint_or_err(
80
if (str != NULL && *str != '\0') {
81
errno = 0;
82
num = strtol(str, &end, 0);
83
- if (errno == 0 && str != end && end != NULL && *end == '\0' && num < INT_MAX) {
+ if (errno == 0 && str != end && end != NULL && *end == '\0') {
84
return num;
85
}
86
@@ -99,7 +99,7 @@ unsigned long strtoulong_or_err(
99
100
101
num = strtoul(str, &end, 0);
102
- if (errno == 0 && str != end && end != NULL && *end == '\0' && num < UINT32_MAX) {
103
104
105
0 commit comments