summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorSeokYeon Hwang <syeon.hwang@samsung.com>2014-07-15 16:05:28 +0900
committerSeokYeon Hwang <syeon.hwang@samsung.com>2014-07-16 22:08:16 +0900
commit7b9cea0596269db57a0a7335ed9d62eeb7d7ef4c (patch)
treef775f82263dc519bf0c9186ccc2688f1c451399e /exec.c
parentacfea61fed0c9b5a0baa1f6dac3dd85e3fb28370 (diff)
downloadqemu-7b9cea0596269db57a0a7335ed9d62eeb7d7ef4c.tar.gz
qemu-7b9cea0596269db57a0a7335ed9d62eeb7d7ef4c.tar.bz2
qemu-7b9cea0596269db57a0a7335ed9d62eeb7d7ef4c.zip
emulator: fix some compilation warnings on Windows
Fix compilation warnings -Wpointer-to-int-cast, -Wint-to-pointor-cast. Change-Id: I85d9063e7d89d88a27da7e90d76c1b8bd6a11fc8 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 346a196596..b6035d5399 100644
--- a/exec.c
+++ b/exec.c
@@ -1297,7 +1297,7 @@ ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host,
*/
if (hax_enabled()) {
int ret;
- ret = hax_populate_ram((uint64_t)new_block->host, size);
+ ret = hax_populate_ram((uint64_t)(intptr_t)new_block->host, size);
if (ret < 0) {
fprintf(stderr, "Hax failed to populate ram\n");
exit(-1);