Skip to content

Commit cfe22c9

Browse files
authored
Merge pull request #526 from marek22k/fix-523-2
Remove redundant code
2 parents f16fcbc + 778862f commit cfe22c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/utils.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ int strtoint_or_err(
8080
if (str != NULL && *str != '\0') {
8181
errno = 0;
8282
num = strtol(str, &end, 0);
83-
if (errno == 0 && str != end && end != NULL && *end == '\0' && num < INT_MAX) {
83+
if (errno == 0 && str != end && end != NULL && *end == '\0') {
8484
return num;
8585
}
8686
}
@@ -99,7 +99,7 @@ unsigned long strtoulong_or_err(
9999
if (str != NULL && *str != '\0') {
100100
errno = 0;
101101
num = strtoul(str, &end, 0);
102-
if (errno == 0 && str != end && end != NULL && *end == '\0' && num < UINT32_MAX) {
102+
if (errno == 0 && str != end && end != NULL && *end == '\0') {
103103
return num;
104104
}
105105
}

0 commit comments

Comments
 (0)