From 59aa3bbf9f6ca12acabe1759b9eab25162f9d945 Mon Sep 17 00:00:00 2001 From: balrog Date: Wed, 16 Jul 2008 11:31:11 +0000 Subject: [PATCH] Remove unintended dereference, kills a warning (Jan Kiszka). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4875 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sh4/op.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-sh4/op.c b/target-sh4/op.c index ce3185ec9a..4dc7193e19 100644 --- a/target-sh4/op.c +++ b/target-sh4/op.c @@ -594,8 +594,8 @@ void OPPROTO op_shlr16_Rn(void) void OPPROTO op_tasb_rN(void) { - cond_t(*(int8_t *) env->gregs[PARAM1] == 0); - *(int8_t *) env->gregs[PARAM1] |= 0x80; + cond_t((env->gregs[PARAM1] && 0xff) == 0); + *(int8_t *) &env->gregs[PARAM1] |= 0x80; RETURN(); } -- 2.39.5