mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-12-21 07:30:05 +00:00
cvt.c:
Fix for PR#56 -- there is a kludge to modify the exponent for a converted value of zero, due to the way that SANE special- cases it. This kludge was applied for all values that had a zero exponent; now do it only for the value zero.
This commit is contained in:
parent
70c2382176
commit
04ed2e0e19
@ -2,7 +2,7 @@
|
||||
* Floating point conversion routines.
|
||||
* Devin Reade, 1997.
|
||||
*
|
||||
* $Id: cvt.c,v 1.3 1998/03/24 16:20:30 gdr-ftp Exp $
|
||||
* $Id: cvt.c,v 1.4 1998/03/28 16:42:32 gdr-ftp Exp $
|
||||
*
|
||||
* This file is formatted with tab stops every 8 columns.
|
||||
*/
|
||||
@ -128,7 +128,7 @@ mode0: /* this label doesn't belong here */
|
||||
}
|
||||
|
||||
/* special case the exponent for 0.0 */
|
||||
if (*decpt == 0) {
|
||||
if (number == 0) {
|
||||
*decpt = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user