aboutsummaryrefslogtreecommitdiffstats
path: root/cad/qmls
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-12-12 12:25:32 +0800
committerpat <pat@FreeBSD.org>2002-12-12 12:25:32 +0800
commit0987a053d3a1f69ad92271d2981c15a8286fec87 (patch)
treeb8b53d81a5561281eaf68e0292a422ee41385fac /cad/qmls
parent5ed964d85e665e114f706d8e8498a131f2997995 (diff)
downloadfreebsd-ports-gnome-0987a053d3a1f69ad92271d2981c15a8286fec87.tar.gz
freebsd-ports-gnome-0987a053d3a1f69ad92271d2981c15a8286fec87.tar.zst
freebsd-ports-gnome-0987a053d3a1f69ad92271d2981c15a8286fec87.zip
Fix build for -current
Submitted by: bento
Diffstat (limited to 'cad/qmls')
-rw-r--r--cad/qmls/files/patch-mccluskey.cpp11
-rw-r--r--cad/qmls/files/patch-quinegroup.cpp11
2 files changed, 22 insertions, 0 deletions
diff --git a/cad/qmls/files/patch-mccluskey.cpp b/cad/qmls/files/patch-mccluskey.cpp
new file mode 100644
index 000000000000..57746861f04c
--- /dev/null
+++ b/cad/qmls/files/patch-mccluskey.cpp
@@ -0,0 +1,11 @@
+--- qmls/mccluskey.cpp.orig Wed Dec 11 21:46:22 2002
++++ qmls/mccluskey.cpp Wed Dec 11 21:47:15 2002
+@@ -200,7 +200,7 @@
+ value = primeImplicants[implicants[i]]->ValueAt(0);
+ diffBits = primeImplicants[implicants[i]]->GetDiffBits(numDiffBits);
+
+- mask = (unum)pow(2,numBits-1);
++ mask = (unum)pow(2.0,(int)numBits-1);
+ for (int j=(int)numBits-1; j>=0; j--)
+ {
+ bool dBit=false;
diff --git a/cad/qmls/files/patch-quinegroup.cpp b/cad/qmls/files/patch-quinegroup.cpp
new file mode 100644
index 000000000000..2d815d394995
--- /dev/null
+++ b/cad/qmls/files/patch-quinegroup.cpp
@@ -0,0 +1,11 @@
+--- qmls/quinegroup.cpp.orig Wed Dec 11 21:42:49 2002
++++ qmls/quinegroup.cpp Wed Dec 11 21:44:24 2002
+@@ -111,7 +111,7 @@
+ unsigned int headData = head->GetData();
+ for (i=0; i<numDiffBits; i++)
+ {
+- unsigned int numToSkip = (unsigned int)pow(2,i);
++ unsigned int numToSkip = (unsigned int)pow(2.0,(int)i);
+ diffBits[i] = ValueAt(numToSkip) - headData;
+ }
+