diff options
| author | David Schultz <das@FreeBSD.org> | 2011-03-09 06:14:33 +0000 |
|---|---|---|
| committer | David Schultz <das@FreeBSD.org> | 2011-03-09 06:14:33 +0000 |
| commit | 21a2b1c905e6a3ae73e3ca075627e81a2ccac58f (patch) | |
| tree | 80228e2b243573cbd695c52e7a912cc1643cd1b2 /hexnan.c | |
| parent | 9ea4d2a87415d5928272c15f22583103f2ccfe30 (diff) | |
Notes
Diffstat (limited to 'hexnan.c')
| -rw-r--r-- | hexnan.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -77,7 +77,7 @@ hexnan( CONST char **sp, FPI *fpi, ULong *x0) if (s[1] == '0' && (s[2] == 'x' || s[2] == 'X') && *(CONST unsigned char*)(s+3) > ' ') s += 2; - while(c = *(CONST unsigned char*)++s) { + while((c = *(CONST unsigned char*)++s)) { if (!(h = hexdig[c])) { if (c <= ' ') { if (hd0 < havedig) { @@ -109,7 +109,7 @@ hexnan( CONST char **sp, FPI *fpi, ULong *x0) *sp = s + 1; break; } - } while(c = *++s); + } while((c = *++s)); #endif return STRTOG_NaN; } @@ -120,7 +120,7 @@ hexnan( CONST char **sp, FPI *fpi, ULong *x0) i = 1; *--x = 0; } - *x = (*x << 4) | h & 0xf; + *x = (*x << 4) | (h & 0xf); } if (!havedig) return STRTOG_NaN; |
