Commit 6986f88c3f9694752b254f5d7ac92d7e6def635a
1 parent
98857888
cast to return type
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@556 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
0 deletions
softmmu_template.h
| ... | ... | @@ -162,6 +162,7 @@ static DATA_TYPE glue(glue(slow_ld, SUFFIX), MMUSUFFIX)(unsigned long addr, |
| 162 | 162 | #else |
| 163 | 163 | res = (res1 >> shift) | (res2 << ((DATA_SIZE * 8) - shift)); |
| 164 | 164 | #endif |
| 165 | + res = (DATA_TYPE)res; | |
| 165 | 166 | } else { |
| 166 | 167 | /* unaligned/aligned access in the same page */ |
| 167 | 168 | res = glue(glue(ld, USUFFIX), _raw)((uint8_t *)physaddr); | ... | ... |