summaryrefslogtreecommitdiff
path: root/math/hexcalc/files/patch-hexcalc.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/hexcalc/files/patch-hexcalc.c')
-rw-r--r--math/hexcalc/files/patch-hexcalc.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/math/hexcalc/files/patch-hexcalc.c b/math/hexcalc/files/patch-hexcalc.c
deleted file mode 100644
index c071859b659f..000000000000
--- a/math/hexcalc/files/patch-hexcalc.c
+++ /dev/null
@@ -1,51 +0,0 @@
---- hexcalc.c.orig 2011-05-13 08:28:24.000000000 +0800
-+++ hexcalc.c 2011-05-13 08:32:09.000000000 +0800
-@@ -37,6 +37,7 @@
- #endif
-
- #include <stdio.h>
-+#include <stdlib.h>
- #include <ctype.h>
- #include <X11/IntrinsicP.h>
- #include <X11/StringDefs.h>
-@@ -509,14 +510,16 @@
-
- switch(topOp) {
- case '+' :
-- ac = PopArg() + PopArg();
-+ temp = PopArg();
-+ ac = PopArg() + temp;
- break;
- case '-' :
- temp = PopArg();
- ac = PopArg() - temp;
- break;
- case '*' :
-- ac = PopArg() * PopArg();
-+ temp = PopArg();
-+ ac = temp * PopArg();
- break;
- case '/' :
- temp = PopArg();
-@@ -528,15 +531,18 @@
- break;
-
- case '|' :
-- ac = PopArg() | PopArg();
-+ temp = PopArg();
-+ ac = temp | PopArg();
- break;
-
- case '&' :
-- ac = PopArg() & PopArg();
-+ temp = PopArg();
-+ ac = temp & PopArg();
- break;
-
- case '^' :
-- ac = PopArg() ^ PopArg();
-+ temp = PopArg();
-+ ac = temp ^ PopArg();
- break;
-
- case '<' :