Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2017-06-14 18:47:59 +0000
committerEugene Tarassov2017-06-14 18:47:59 +0000
commit01305f142b18a30c71c3ba00897534ccb679a1c9 (patch)
tree56ac655af14222a41a3925887e578c338914b330 /agent/tcf/services/expressions.c
parent5ec928ddf62b0ad936efacf2b2d8fb87cca112ac (diff)
downloadorg.eclipse.tcf.agent-01305f142b18a30c71c3ba00897534ccb679a1c9.tar.gz
org.eclipse.tcf.agent-01305f142b18a30c71c3ba00897534ccb679a1c9.tar.xz
org.eclipse.tcf.agent-01305f142b18a30c71c3ba00897534ccb679a1c9.zip
TCF Agent: got rid of compiler warning: cast from pointer to integer of different size
Diffstat (limited to 'agent/tcf/services/expressions.c')
-rw-r--r--agent/tcf/services/expressions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/tcf/services/expressions.c b/agent/tcf/services/expressions.c
index e119c951..8b81ae0a 100644
--- a/agent/tcf/services/expressions.c
+++ b/agent/tcf/services/expressions.c
@@ -1278,12 +1278,12 @@ static int identifier(int mode, Value * scope, char * name, SYM_FLAGS flags, Val
int sym_class = 0;
if (find_test_symbol(expression_context, name, &ptr, &sym_class) >= 0) {
if (sym_class == SYM_CLASS_FUNCTION) {
- set_ctx_word_value(v, (ContextAddress)ptr);
+ set_ctx_word_value(v, (ContextAddress)(uintptr_t)ptr);
v->type_class = TYPE_CLASS_POINTER;
v->function = 1;
}
else {
- v->address = (ContextAddress)ptr;
+ v->address = (ContextAddress)(uintptr_t)ptr;
v->remote = 1;
}
return sym_class;

Back to the top