xo-reader: parse expr with operator !=

This commit is contained in:
Roland Conybeare 2025-07-27 19:00:12 -04:00
commit 622f08856e

View file

@ -192,7 +192,14 @@ namespace xo {
break;
case optype::op_not_equal:
assert(false);
if (lhs_->valuetype()->is_i64() && rhs_->valuetype()->is_i64()) {
return Apply::make_cmp_ne_i64(lhs_, rhs_);
} else {
this->apply_type_error(c_self_name,
op_type_, lhs_, rhs_, p_psm);
return nullptr;
}
break;
case optype::op_less:
// TODO: floating-point less-than