Skip to content

Commit b0e0853

Browse files
authored
Derpity derpity derp derp
I swear I know how to code.
1 parent 707c91f commit b0e0853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/strto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <ctype.h>
44

55
long int strtol(const char * nptr, char ** endptr, int base) {
6-
if (base <= 1 || base >= 37 || base != 0) {
6+
if (base < 0 || base == 1 || base >= 37) {
77
set_errno(EINVAL);
88
return 0;
99
}

0 commit comments

Comments
 (0)