diff options
author | Eugene Tarassov | 2014-11-21 20:34:42 +0000 |
---|---|---|
committer | Eugene Tarassov | 2014-11-21 20:34:42 +0000 |
commit | f3a11366e4375f8df0b11267c1752ddc419f18ca (patch) | |
tree | 0e9016dbcb0d15f8e0b78f8831a7c0ff7e00f017 /agent/tcf/services/expressions.c | |
parent | cda46c632f580c128e92caa4ee91ff332af80e85 (diff) | |
download | org.eclipse.tcf.agent-f3a11366e4375f8df0b11267c1752ddc419f18ca.tar.gz org.eclipse.tcf.agent-f3a11366e4375f8df0b11267c1752ddc419f18ca.tar.xz org.eclipse.tcf.agent-f3a11366e4375f8df0b11267c1752ddc419f18ca.zip |
TCF Agent: Expressions: allow type cast of any l-value to an array type
Diffstat (limited to 'agent/tcf/services/expressions.c')
-rw-r--r-- | agent/tcf/services/expressions.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/agent/tcf/services/expressions.c b/agent/tcf/services/expressions.c index 7c4737bb..17a36e0b 100644 --- a/agent/tcf/services/expressions.c +++ b/agent/tcf/services/expressions.c @@ -2803,6 +2803,13 @@ static void lazy_unary_expression(int mode, Value * v) { v->type = type; v->type_class = type_class; } + else if (v->remote) { + v->sym_list = NULL; + v->sym = NULL; + v->type = type; + v->size = type_size; + v->type_class = type_class; + } else { error(ERR_INV_EXPRESSION, "Invalid type cast: illegal source type"); } |