]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
pseries: Fix compiler warning (conversion of pointer to integral value)
authorStefan Weil <sw@weilnetz.de>
Wed, 19 Jun 2013 21:08:29 +0000 (23:08 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Jun 2013 23:11:16 +0000 (01:11 +0200)
commitec4936e1a49ef2d7129a1813ed7a3ca826698bfb
treea6af25e58dc795be51b7a4c14d829e9d8c7f303f
parent210b580b106fa798149e28aa13c66b325a43204e
pseries: Fix compiler warning (conversion of pointer to integral value)

This kind of type cast must use uintptr_t or target_ulong to be portable
for hosts with sizeof(void *) != sizeof(long).

Here the value is assigned to a variable of type target_ulong.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
[agraf: fix compilation on 32bit hosts]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c