From 6986f88c3f9694752b254f5d7ac92d7e6def635a Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 18 Jan 2004 21:53:18 +0000 Subject: [PATCH] cast to return type git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@556 c046a42c-6fe2-441c-8c8c-71466251a162 --- softmmu_template.h | 1 + 1 file changed, 1 insertion(+) diff --git a/softmmu_template.h b/softmmu_template.h index 2dad910bf6..2d3db62f68 100644 --- a/softmmu_template.h +++ b/softmmu_template.h @@ -162,6 +162,7 @@ static DATA_TYPE glue(glue(slow_ld, SUFFIX), MMUSUFFIX)(unsigned long addr, #else res = (res1 >> shift) | (res2 << ((DATA_SIZE * 8) - shift)); #endif + res = (DATA_TYPE)res; } else { /* unaligned/aligned access in the same page */ res = glue(glue(ld, USUFFIX), _raw)((uint8_t *)physaddr);