diff --git a/lib/libc/gdtoa/hdtoa.c b/lib/libc/gdtoa/hdtoa.c index 771fe0a6222d..6bebf9789423 100644 --- a/lib/libc/gdtoa/hdtoa.c +++ b/lib/libc/gdtoa/hdtoa.c @@ -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 @@ -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 @@ -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);