aboutsummaryrefslogtreecommitdiff
path: root/cad/magic
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-09-29 06:08:08 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-09-29 06:08:08 +0000
commit8354b705b53edb1e3b1473e123cfebcb8643717d (patch)
tree63c039b2d0f2053796dfc9be8102c2a79c00683a /cad/magic
parent08f994036f886642d0a4866ce3d95862bae1673c (diff)
downloadports-8354b705b53edb1e3b1473e123cfebcb8643717d.tar.gz
ports-8354b705b53edb1e3b1473e123cfebcb8643717d.zip
Notes
Diffstat (limited to 'cad/magic')
-rw-r--r--cad/magic/files/patch-ae29
1 files changed, 29 insertions, 0 deletions
diff --git a/cad/magic/files/patch-ae b/cad/magic/files/patch-ae
new file mode 100644
index 000000000000..e8a51e3f3f2e
--- /dev/null
+++ b/cad/magic/files/patch-ae
@@ -0,0 +1,29 @@
+--- resis/ResRex.c.orig Tue Aug 2 15:40:24 1994
++++ resis/ResRex.c Sat Sep 28 22:51:44 2002
+@@ -11,7 +11,7 @@
+ #ifdef ibm032
+ #define MAXFLOAT ((float)3.40282346638528860e+38)
+ #else
+-#include <values.h>
++#include <limits.h>
+ #endif
+
+ #undef MAXINT
+@@ -447,7 +447,7 @@
+ ResSortByGate(&node->firstTran);
+ /* Find largest SD transistor connected to node. */
+
+- minRes = MAXFLOAT;
++ minRes = FLOAT_MAX;
+ gparams.rg_tranloc = (Point *) NULL;
+ gparams.rg_status = FALSE;
+ gparams.rg_nodecap = node->capacitance;
+@@ -523,7 +523,7 @@
+ {
+ TxError("Node %s has force label but no drive point or driving transistor\n",node->name);
+ }
+- if (minRes == MAXFLOAT || gparams.rg_tranloc == NULL)
++ if (minRes == FLOAT_MAX || gparams.rg_tranloc == NULL)
+ {
+ continue;
+ }