0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Merge remote-tracking branch 'refs/remotes/origin/mq-filter-stack' into mq-filter-stack

This commit is contained in:
Maria Matejka 2019-06-25 22:40:05 +02:00
commit a8ab54d18d

View File

@ -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) {