summaryrefslogtreecommitdiff
path: root/strtof.c
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2011-03-09 06:14:33 +0000
committerDavid Schultz <das@FreeBSD.org>2011-03-09 06:14:33 +0000
commit21a2b1c905e6a3ae73e3ca075627e81a2ccac58f (patch)
tree80228e2b243573cbd695c52e7a912cc1643cd1b2 /strtof.c
parent9ea4d2a87415d5928272c15f22583103f2ccfe30 (diff)
Notes
Diffstat (limited to 'strtof.c')
-rw-r--r--strtof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strtof.c b/strtof.c
index f8111b716c21..a8beb3520a01 100644
--- a/strtof.c
+++ b/strtof.c
@@ -58,7 +58,7 @@ strtof(CONST char *s, char **sp)
case STRTOG_Normal:
case STRTOG_NaNbits:
- u.L[0] = bits[0] & 0x7fffff | exp + 0x7f + 23 << 23;
+ u.L[0] = (bits[0] & 0x7fffff) | ((exp + 0x7f + 23) << 23);
break;
case STRTOG_Denormal: