mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 02:06:42 +00:00
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>
This commit is contained in:
parent
db8894f209
commit
964d0a7b2b
@ -79,7 +79,7 @@ def c(events):
|
|||||||
)
|
)
|
||||||
# pointer var (not string)
|
# pointer var (not string)
|
||||||
elif type_.endswith('*'):
|
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,
|
name = name,
|
||||||
)
|
)
|
||||||
# primitive data type
|
# primitive data type
|
||||||
|
Loading…
Reference in New Issue
Block a user