O_DEFINE operator should always return NULL_VALUE
This commit is contained in:
parent
51587d351f
commit
976ba4907d
1 changed files with 5 additions and 0 deletions
|
|
@ -164,6 +164,11 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * locus, const int depth)
|
||||||
result = as_value();
|
result = as_value();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case O_DEFINE:
|
||||||
|
//result = left()->calc(scope, locus, depth + 1);
|
||||||
|
result = NULL_VALUE;
|
||||||
|
break;
|
||||||
|
|
||||||
case IDENT: {
|
case IDENT: {
|
||||||
ptr_op_t definition = left();
|
ptr_op_t definition = left();
|
||||||
if (! definition) {
|
if (! definition) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue