fix scan_xlong, scan_xlonglong and scan_8long
This commit is contained in:
parent
c874604f12
commit
05bf627d01
1
CHANGES
1
CHANGES
@ -3,6 +3,7 @@
|
||||
fix a few man pages
|
||||
optimize fmt_base64 (Dan Gundlach)
|
||||
gcc 4 cleanups (mostly unsigned char* vs char*)
|
||||
fix scan_xlong, scan_xlonglong and scan_8long
|
||||
|
||||
0.22:
|
||||
uh, the scope_id detection #defined the wrong constant. libowfat
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
unsigned int scan_8long(const char *src,unsigned long *dest) {
|
||||
register const char *tmp=src;
|
||||
register int l=0;
|
||||
register unsigned long l=0;
|
||||
register unsigned char c;
|
||||
while ((c=*tmp-'0')<8) {
|
||||
l=l*8+c;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
unsigned int scan_xlong(const char *src,unsigned long *dest) {
|
||||
register const char *tmp=src;
|
||||
register int l=0;
|
||||
register unsigned long l=0;
|
||||
register unsigned char c;
|
||||
while ((c=scan_fromhex(*tmp))<16) {
|
||||
l=(l<<4)+c;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
unsigned int scan_xlonglong(const char* src,unsigned long long* dest) {
|
||||
register const char *tmp=src;
|
||||
register int l=0;
|
||||
register long long l=0;
|
||||
register unsigned char c;
|
||||
while ((c=scan_fromhex(*tmp))<16) {
|
||||
l=(l<<4)+c;
|
||||
|
Loading…
x
Reference in New Issue
Block a user