add support for % operator in QC (untested)

This commit is contained in:
Bill Currie 2000-03-25 12:23:41 +00:00
parent 8bbe24a289
commit e2242f2010
2 changed files with 7 additions and 1 deletions

View file

@ -124,7 +124,9 @@ enum {
OP_OR, OP_OR,
OP_BITAND, OP_BITAND,
OP_BITOR OP_BITOR,
OP_MOD_F,
}; };

View file

@ -477,6 +477,10 @@ while (1)
c->_float = a->_float / b->_float; c->_float = a->_float / b->_float;
break; break;
case OP_MOD_F:
c->_float = (int)a->_float % (int)b->_float;
break;
case OP_BITAND: case OP_BITAND:
c->_float = (int)a->_float & (int)b->_float; c->_float = (int)a->_float & (int)b->_float;
break; break;