git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libc - stdin caching
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libc.so_src
/
strtoi.c
diff --git
a/Usermode/Libraries/libc.so_src/strtoi.c
b/Usermode/Libraries/libc.so_src/strtoi.c
index
81af460
..
de7f725
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/strtoi.c
+++ b/
Usermode/Libraries/libc.so_src/strtoi.c
@@
-54,9
+54,9
@@
unsigned long long strtoull(const char *str, char **end, int base)
if( '0' <= *str && *str <= '9' )
next = *str - '0';
if( 'A' <= *str && *str <= 'A'+base-10-1 )
if( '0' <= *str && *str <= '9' )
next = *str - '0';
if( 'A' <= *str && *str <= 'A'+base-10-1 )
- next = *str - 'A';
+ next = *str - 'A'
+ 10
;
if( 'a' <= *str && *str <= 'a'+base-10-1 )
if( 'a' <= *str && *str <= 'a'+base-10-1 )
- next = *str - 'a';
+ next = *str - 'a'
+ 10
;
}
if( next < 0 )
break;
}
if( next < 0 )
break;
@@
-143,7
+143,7
@@
long atol(const char *str)
return tmp;
}
return tmp;
}
-long atoll(const char *str)
+long
long
atoll(const char *str)
{
long long tmp = strtoll(str, NULL, 0);
return tmp;
{
long long tmp = strtoll(str, NULL, 0);
return tmp;
UCC
git Repository :: git.ucc.asn.au