summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Matejka <mq@jmq.cz>2019-06-25 22:40:05 +0200
committerMaria Matejka <mq@jmq.cz>2019-06-25 22:40:05 +0200
commita8ab54d18d3af8e7dc9811ab8e3ba9a105131a25 (patch)
tree65cf2b3ab358a3da86aff2c5a390aca59a7a95bf
parent63e7620462b80c9c6bbbd4f128b6816e0748d6c6 (diff)
parent2e0777317f373921487d80e88c376d23a842ba2c (diff)
Merge remote-tracking branch 'refs/remotes/origin/mq-filter-stack' into mq-filter-stack
-rw-r--r--filter/f-inst.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/f-inst.c b/filter/f-inst.c
index 749e072c..7349bf72 100644
--- a/filter/f-inst.c
+++ b/filter/f-inst.c
@@ -50,26 +50,26 @@
INST(FI_ADD, 2, 1) {
ARG(1,T_INT);
ARG(2,T_INT);
- res.val.i += v2.val.i;
+ res.val.i = v1.val.i + v2.val.i;
RESULT_OK;
}
INST(FI_SUBTRACT, 2, 1) {
ARG(1,T_INT);
ARG(2,T_INT);
- res.val.i -= v2.val.i;
+ res.val.i = v1.val.i - v2.val.i;
RESULT_OK;
}
INST(FI_MULTIPLY, 2, 1) {
ARG(1,T_INT);
ARG(2,T_INT);
- res.val.i *= v2.val.i;
+ res.val.i = v1.val.i * v2.val.i;
RESULT_OK;
}
INST(FI_DIVIDE, 2, 1) {
ARG(1,T_INT);
ARG(2,T_INT);
if (v2.val.i == 0) runtime( "Mother told me not to divide by 0" );
- res.val.i /= v2.val.i;
+ res.val.i = v1.val.i / v2.val.i;
RESULT_OK;
}
INST(FI_AND, 1, 1) {