aboutsummaryrefslogtreecommitdiff
path: root/editors/MathPlanner/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-02-08 13:23:15 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-02-08 13:23:15 +0000
commitc94da980a2c17e12ccb84d7a992d79a0eb0cbbde (patch)
treeaea1ce2240803104cc5664cb27a3f6981b9a45fe /editors/MathPlanner/files
parent40ce35f8b56a8a4cefe02755bdf99bf4966c8a6e (diff)
Notes
Diffstat (limited to 'editors/MathPlanner/files')
-rw-r--r--editors/MathPlanner/files/patch-ConfigReader.cpp11
-rw-r--r--editors/MathPlanner/files/patch-Rational_math.cpp11
-rw-r--r--editors/MathPlanner/files/patch-Real_math.cpp13
3 files changed, 35 insertions, 0 deletions
diff --git a/editors/MathPlanner/files/patch-ConfigReader.cpp b/editors/MathPlanner/files/patch-ConfigReader.cpp
new file mode 100644
index 000000000000..b630b3e770bb
--- /dev/null
+++ b/editors/MathPlanner/files/patch-ConfigReader.cpp
@@ -0,0 +1,11 @@
+--- src/ConfigReader.cpp.orig Sat Feb 8 20:50:08 2003
++++ src/ConfigReader.cpp Sat Feb 8 20:50:32 2003
+@@ -151,7 +151,7 @@
+
+ for(i=0;i<count;i++) {
+ if (Match(i,name)) {
+- co=strdupa(data[i].string);
++ co=strdup(data[i].string);
+ if (co) {
+ tok=strtok(co,se); r=atoi(tok);
+ tok=strtok(NULL,se); g=atoi(tok);
diff --git a/editors/MathPlanner/files/patch-Rational_math.cpp b/editors/MathPlanner/files/patch-Rational_math.cpp
new file mode 100644
index 000000000000..d6c8004dd418
--- /dev/null
+++ b/editors/MathPlanner/files/patch-Rational_math.cpp
@@ -0,0 +1,11 @@
+--- src/Rational_math.cpp.orig Sat Feb 8 20:58:16 2003
++++ src/Rational_math.cpp Sat Feb 8 21:01:38 2003
+@@ -163,7 +163,7 @@
+ for (i=0;i<21;i++)
+ if (mpl_modul(per_table[i],real)) {
+ up=per_table[i];
+- lo=round(up/real);
++ lo=floor(up/real);
+ pass=true;
+ break;
+ }
diff --git a/editors/MathPlanner/files/patch-Real_math.cpp b/editors/MathPlanner/files/patch-Real_math.cpp
new file mode 100644
index 000000000000..408a3faf660c
--- /dev/null
+++ b/editors/MathPlanner/files/patch-Real_math.cpp
@@ -0,0 +1,13 @@
+--- src/Real_math.cpp.orig Sat Feb 8 21:02:34 2003
++++ src/Real_math.cpp Sat Feb 8 21:02:54 2003
+@@ -26,8 +26,8 @@
+ bool mpl_modul(mpl_real a,mpl_real b)
+ {
+ mpl_real c=(a/b);
+-mpl_real ca=round(c*MODUL_ACCURACY);
+-mpl_real cb=round(c)*MODUL_ACCURACY;
++mpl_real ca=floor(c*MODUL_ACCURACY);
++mpl_real cb=floor(c)*MODUL_ACCURACY;
+
+ if (ca==cb) return(true);
+ return(false);