From: bellard Date: Sat, 19 Jun 2004 16:57:17 +0000 (+0000) Subject: const fix X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~15418 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d69d1fa01ad5e64821ea2a6dd6bb018f6d570111;p=sdk%2Femulator%2Fqemu.git const fix git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@928 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/linux-user/qemu.h b/linux-user/qemu.h index be95ff9183..2331c419d8 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -155,16 +155,16 @@ int target_msync(unsigned long start, unsigned long len, int flags); int size = sizeof(*ptr);\ switch(size) {\ case 1:\ - x = (typeof(*ptr))ldub(ptr);\ + x = (typeof(*ptr))ldub((void *)ptr);\ break;\ case 2:\ - x = (typeof(*ptr))lduw(ptr);\ + x = (typeof(*ptr))lduw((void *)ptr);\ break;\ case 4:\ - x = (typeof(*ptr))ldl(ptr);\ + x = (typeof(*ptr))ldl((void *)ptr);\ break;\ case 8:\ - x = (typeof(*ptr))ldq(ptr);\ + x = (typeof(*ptr))ldq((void *)ptr);\ break;\ default:\ abort();\