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:
gdr-ftp 1998-03-28 16:42:32 +00:00
parent 70c2382176
commit 04ed2e0e19
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}