From 964d0a7b2bab935d48d3b2c4d6ab9b0efc74ce8b Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 13 Aug 2012 21:50:56 +0200 Subject: trace/simple: Fix compiler warning for 32 bit hosts gcc complains when a 32 bit pointer is casted to a 64 bit integer. Cc: Stefan Hajnoczi Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- scripts/tracetool/backend/simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/tracetool') diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backend/simple.py index c7e47d6d72..e4b4a7f05d 100644 --- a/scripts/tracetool/backend/simple.py +++ b/scripts/tracetool/backend/simple.py @@ -79,7 +79,7 @@ def c(events): ) # pointer var (not string) elif type_.endswith('*'): - out(' trace_record_write_u64(&rec, (uint64_t)(uint64_t *)%(name)s);', + out(' trace_record_write_u64(&rec, (uintptr_t)(uint64_t *)%(name)s);', name = name, ) # primitive data type -- cgit v1.2.3