[Pkg-electronics-commits] [gnucap] 09/49: constant.h --- construct order

felix salfelder felix-guest at moszumanska.debian.org
Tue Feb 2 21:39:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch wip
in repository gnucap.

commit c518a5daab6cbfb42985596c9eb4e45c0f5a1fb1
Author: al davis <al at floyd.freeelectron.net>
Date:   Fri Jul 4 13:52:28 2014 -0400

    constant.h --- construct order
---
 include/constant.h | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/include/constant.h b/include/constant.h
index 89761a1..0c1ec76 100644
--- a/include/constant.h
+++ b/include/constant.h
@@ -1,4 +1,4 @@
-/*$Id: constant.h,v 26.81 2008/05/27 05:34:00 al Exp $ -*- C++ -*-
+/*$Id: constant.h,v  2014/05/16 al $ -*- C++ -*-
  * Copyright (C) 2001 Albert Davis
  * Author: Albert Davis <aldavis at gnu.org>
  *
@@ -84,11 +84,14 @@ double const ICM2M2 = 1e4;		/* inverse  ...........  squared */
 double const ICM2M3 = 1e6;		/* inverse  ...........  cubed   */
 double const MICRON2METER = 1e-6;	/*	microns to meters	 */
 
-#ifdef HAS_NUMERIC_LIMITS
-double const MAXDBL    = std::numeric_limits<double>::max();
-#else
-double const MAXDBL    = DBL_MAX;
-#endif
+//#ifdef HAS_NUMERIC_LIMITS
+//double const MAXDBL    = std::numeric_limits<double>::max();
+//#else
+//double const MAXDBL    = DBL_MAX;
+//#endif
+//BUG// construction order bug? .. use #define
+
+#define MAXDBL (DBL_MAX)
 
 double const BIGBIG    =  (MAXDBL)*(.9247958);	/* unlikely number	  */
 //double const OVERDUE   = -(MAXDBL)*(.9347958);/* unlikely number	  */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-electronics/gnucap.git



More information about the Pkg-electronics-commits mailing list