Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2013-05-07 01:02:28 -0400
committerEugene Tarassov2013-05-07 01:02:28 -0400
commitb03fd2a546d6490ef7352b070c3b120867b95e4f (patch)
treee366cd35262705f69ab0d6d5fce5cc7eb1572235
parent2f885da4313e065776c55ed186fa4327e3fb8be2 (diff)
downloadorg.eclipse.tcf.agent-b03fd2a546d6490ef7352b070c3b120867b95e4f.tar.gz
org.eclipse.tcf.agent-b03fd2a546d6490ef7352b070c3b120867b95e4f.tar.xz
org.eclipse.tcf.agent-b03fd2a546d6490ef7352b070c3b120867b95e4f.zip
TCF Agent: got rid of compiler warnings
-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 0a3b3eca..93e7ba01 100644
--- a/agent/tcf/services/expressions.c
+++ b/agent/tcf/services/expressions.c
@@ -3680,8 +3680,8 @@ static void command_evaluate_cache_client(void * x) {
if (expression_context_id(args->id, &ctx, &frame, &expr) < 0) err = errno;
if (!err && evaluate_expression(ctx, frame, 0, expr->script, 0, &value) < 0) err = errno;
if (!err && value.remote && value.size <= 0x10000) {
- buf = tmp_alloc_zero(value.size);
- if (!err && context_read_mem(ctx, value.address, buf, value.size) < 0)
+ buf = tmp_alloc_zero((size_t)value.size);
+ if (!err && context_read_mem(ctx, value.address, buf, (size_t)value.size) < 0)
err = set_errno(errno, "Cannot read target memory");
}

Back to the top