diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-08-13 21:50:56 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-08-14 13:19:54 +0100 |
commit | 964d0a7b2bab935d48d3b2c4d6ab9b0efc74ce8b (patch) | |
tree | f9f35002d1fdb8e661c47039e1e661983acfeb3f /scripts | |
parent | db8894f2090629a2e12b1e7324c4c5c53367e048 (diff) | |
download | hqemu-964d0a7b2bab935d48d3b2c4d6ab9b0efc74ce8b.zip hqemu-964d0a7b2bab935d48d3b2c4d6ab9b0efc74ce8b.tar.gz |
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 <stefanha@linux.vnet.ibm.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/tracetool/backend/simple.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backend/simple.py index c7e47d6..e4b4a7f 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 |