Changed an assert into a proper exception
This commit is contained in:
parent
976ba4907d
commit
c4a3a7bbe5
1 changed files with 1 additions and 3 deletions
|
|
@ -421,10 +421,8 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * locus, const int depth)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case LAST:
|
|
||||||
default:
|
default:
|
||||||
assert(false);
|
throw_(calc_error, _("Unexpected expr node '%1'") << op_context(this));
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(DEBUG_ON)
|
#if defined(DEBUG_ON)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue