qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4875] Remove unintended dereference, kills a warning (Jan Kiszka).
@ 2008-07-16 11:31 Andrzej Zaborowski
  2008-07-16 11:36 ` Laurent Desnogues
  2008-07-16 12:04 ` [Qemu-devel] " Andreas Schwab
  0 siblings, 2 replies; 8+ messages in thread
From: Andrzej Zaborowski @ 2008-07-16 11:31 UTC (permalink / raw)
  To: qemu-devel

Revision: 4875
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4875
Author:   balrog
Date:     2008-07-16 11:31:11 +0000 (Wed, 16 Jul 2008)

Log Message:
-----------
Remove unintended dereference, kills a warning (Jan Kiszka).

Modified Paths:
--------------
    trunk/target-sh4/op.c

Modified: trunk/target-sh4/op.c
===================================================================
--- trunk/target-sh4/op.c	2008-07-16 04:45:12 UTC (rev 4874)
+++ trunk/target-sh4/op.c	2008-07-16 11:31:11 UTC (rev 4875)
@@ -594,8 +594,8 @@
 
 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();
 }
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-08-18  7:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 11:31 [Qemu-devel] [4875] Remove unintended dereference, kills a warning (Jan Kiszka) Andrzej Zaborowski
2008-07-16 11:36 ` Laurent Desnogues
2008-07-16 12:10   ` [Qemu-devel] " Jan Kiszka
2008-07-16 12:04 ` [Qemu-devel] " Andreas Schwab
2008-07-16 12:30   ` Laurent Desnogues
2008-07-16 12:35     ` [Qemu-devel] " Jan Kiszka
2008-07-19  6:24       ` andrzej zaborowski
2008-08-18  7:13         ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).