return op2_check_type_boolean_or_op(parser, op2_class, left, right);
}
-static bool op2_check_type_num(struct parser* parser, struct op2_class *op2_class,
+static bool op2_check_type_num(struct parser* parser, const struct op2_class *op2_class,
struct node *left, struct node *right)
{
- if (left->type != NODE_NUM) {
+ if (left->type != NODE_NUM && left->type != NODE_FNUM) {
snprintf(parser->errmsg, sizeof(parser->errmsg),
_("error: unexpected left operand type %s for: %s"),
NODE_CLASS(left)->name,