_PyFloat_Pack4(): Removed needless call of floor().

This commit is contained in:
Tim Peters 2003-03-21 17:10:03 +00:00
parent bc4ded9bc0
commit f1ed934278
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ _PyFloat_Pack4(double x, unsigned char *p, int le)
}
f *= 8388608.0; /* 2**23 */
fbits = (long) floor(f + 0.5); /* Round */
fbits = (unsigned int)(f + 0.5); /* Round */
assert(fbits <= 8388608);
if (fbits >> 23) {
/* The carry propagated out of a string of 23 1 bits. */