public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fix compile time warning in tc-sh.c
@ 2005-02-15 12:51 Kaz Kojima
  0 siblings, 0 replies; only message in thread
From: Kaz Kojima @ 2005-02-15 12:51 UTC (permalink / raw)
  To: binutils

Hi,

The appended patch fixes compile time warnings in gas/config/tc-sh.c.
Applied as obvious.

Regards,
	kaz
--
2005-02-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* config/tc-sh.c (md_apply_fix3): Add parentheses around &
	within |.

diff -u3prN ORIG/src/gas/config/tc-sh.c LOCAL/src/gas/config/tc-sh.c
--- ORIG/src/gas/config/tc-sh.c	Tue Jan 18 07:11:00 2005
+++ LOCAL/src/gas/config/tc-sh.c	Sat Feb 12 16:03:40 2005
@@ -3904,7 +3904,7 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
 	abort();
       max = 0x7ffff;
       min = -0x80000;
-      buf[1] = (buf[1] & 0x0f) | (val >> 12) & 0xf0;
+      buf[1] = (buf[1] & 0x0f) | ((val >> 12) & 0xf0);
       buf[2] = (val >> 8) & 0xff;
       buf[3] = val & 0xff;
       break;
@@ -3914,7 +3914,7 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
       max = 0x7ffff;
       min = -0x80000;
       shift = 8;
-      buf[1] = (buf[1] & 0x0f) | (val >> 20) & 0xf0;
+      buf[1] = (buf[1] & 0x0f) | ((val >> 20) & 0xf0);
       buf[2] = (val >> 16) & 0xff;
       buf[3] = (val >> 8) & 0xff;
       break;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-15  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-15 12:51 Fix compile time warning in tc-sh.c Kaz Kojima

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 read-only IMAP folder(s) and NNTP newsgroup(s).