Don't use #endif where #else is expected.
This commit is contained in:
parent
2b13247b7f
commit
df36fea7b7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hdtoa.c,v 1.7 2011/03/21 22:33:46 christos Exp $ */
|
||||
/* $NetBSD: hdtoa.c,v 1.8 2011/03/21 23:37:42 enami Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2004, 2005 David Schultz <das@FreeBSD.ORG>
|
||||
|
@ -30,7 +30,7 @@
|
|||
#if 0
|
||||
__FBSDID("$FreeBSD: src/lib/libc/gdtoa/_hdtoa.c,v 1.4 2007/01/03 04:57:58 das Exp $");
|
||||
#else
|
||||
__RCSID("$NetBSD: hdtoa.c,v 1.7 2011/03/21 22:33:46 christos Exp $");
|
||||
__RCSID("$NetBSD: hdtoa.c,v 1.8 2011/03/21 23:37:42 enami Exp $");
|
||||
#endif
|
||||
|
||||
#include <float.h>
|
||||
|
@ -165,7 +165,7 @@ hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign,
|
|||
/* (DBL_MAX_EXP=127 / 2) + 2 = 65? */
|
||||
u.dblu_d *= 0x1p65;
|
||||
*decpt = u.dblu_dbl.dbl_exp - (65 + DBL_ADJ);
|
||||
#endif
|
||||
#else
|
||||
/* (DBL_MAX_EXP=1024 / 2) + 2 = 514? */
|
||||
u.dblu_d *= 0x1p514;
|
||||
*decpt = u.dblu_dbl.dbl_exp - (514 + DBL_ADJ);
|
||||
|
|
Loading…
Reference in New Issue