fixed a bug in check_*_expr()
This commit is contained in:
parent
5c71bad6e1
commit
9f8f8c1a9c
|
@ -390,9 +390,9 @@ check_integral_type(expp, oper)
|
||||||
if (!is_integral_type(expr->ex_type)) {
|
if (!is_integral_type(expr->ex_type)) {
|
||||||
expr_error(expr, "%s on non-integral type (%s)",
|
expr_error(expr, "%s on non-integral type (%s)",
|
||||||
symbol2str(oper), symbol2str(expr->ex_type->tp_fund));
|
symbol2str(oper), symbol2str(expr->ex_type->tp_fund));
|
||||||
}
|
|
||||||
erroneous2int(expp);
|
erroneous2int(expp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
is_arith_type(tp)
|
is_arith_type(tp)
|
||||||
|
@ -424,6 +424,6 @@ check_arith_type(expp, oper)
|
||||||
if (!is_arith_type(expr->ex_type)) {
|
if (!is_arith_type(expr->ex_type)) {
|
||||||
expr_error(expr, "%s on non-arithmetical type (%s)",
|
expr_error(expr, "%s on non-arithmetical type (%s)",
|
||||||
symbol2str(oper), symbol2str(expr->ex_type->tp_fund));
|
symbol2str(oper), symbol2str(expr->ex_type->tp_fund));
|
||||||
}
|
|
||||||
erroneous2int(expp);
|
erroneous2int(expp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue