diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-04 22:51:08 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-04 22:51:08 -0700 |
commit | cdb227fa71be498e5c86ee4fd2ce35193ef28bf9 (patch) | |
tree | 414dd391e8e4acb86419815293b16885cb4b8128 | |
parent | b8e604eb5d397a956ec370da5ee47368a847e367 (diff) | |
download | nasm-cdb227fa71be498e5c86ee4fd2ce35193ef28bf9.tar.gz nasm-cdb227fa71be498e5c86ee4fd2ce35193ef28bf9.tar.bz2 nasm-cdb227fa71be498e5c86ee4fd2ce35193ef28bf9.zip |
float.c: correct the exponent
We would accidentally produce an exponent which was exactly +1 from
the correct one.
-rw-r--r-- | float.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -376,7 +376,7 @@ static int to_float(char *str, int32_t sign, uint8_t *result, /* * Normalised. */ - exponent += expmax; + exponent += expmax-1; ieee_shr(mant, fmt->exponent); ieee_round(mant, fmt->words); /* did we scale up by one? */ |