Browse Source

fix scan_xlong, scan_xlonglong and scan_8long

master
Felix von Leitner 17 years ago
parent
commit
513ee82192
  1. 1
      CHANGES
  2. 2
      scan/scan_8long.c
  3. 2
      scan/scan_xlong.c
  4. 2
      scan/scan_xlonglong.c

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
scan/scan_8long.c

@ -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
scan/scan_xlong.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
scan/scan_xlonglong.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…
Cancel
Save