This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix compile time warning in tc-sh.c


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]