From: Kaz Kojima <kkojima@rr.iij4u.or.jp>
To: binutils@sources.redhat.com
Subject: Fix compile time warning in tc-sh.c
Date: Tue, 15 Feb 2005 12:51:00 -0000 [thread overview]
Message-ID: <20050215.085943.115907465.kkojima@rr.iij4u.or.jp> (raw)
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;
reply other threads:[~2005-02-15 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050215.085943.115907465.kkojima@rr.iij4u.or.jp \
--to=kkojima@rr.iij4u.or.jp \
--cc=binutils@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).