aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/reg.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-06-08 09:15:17 +0000
committerNick Clifton <nickc@redhat.com>2010-06-08 09:15:17 +0000
commit32b269aeb29dea45067af541281d1ba6f827f802 (patch)
treeb8d4a3173e9a802fc1e49b941f52ca1a58ff3cd7 /sim/rx/reg.c
parent09266d1a64b852169ea7d157854e57b554dadc5d (diff)
downloadgdb-32b269aeb29dea45067af541281d1ba6f827f802.zip
gdb-32b269aeb29dea45067af541281d1ba6f827f802.tar.gz
gdb-32b269aeb29dea45067af541281d1ba6f827f802.tar.bz2
* reg.c (set_oszc): Use unsigned int for the mask.
(set_szc, set_osz, set_sz): Likewise.
Diffstat (limited to 'sim/rx/reg.c')
-rw-r--r--sim/rx/reg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/rx/reg.c b/sim/rx/reg.c
index bfb77a3..f635b6d 100644
--- a/sim/rx/reg.c
+++ b/sim/rx/reg.c
@@ -377,7 +377,7 @@ set_flags (int mask, int newbits)
void
set_oszc (long long value, int b, int c)
{
- int mask = b2mask[b];
+ unsigned int mask = b2mask[b];
int f = 0;
if (c)
@@ -394,7 +394,7 @@ set_oszc (long long value, int b, int c)
void
set_szc (long long value, int b, int c)
{
- int mask = b2mask[b];
+ unsigned int mask = b2mask[b];
int f = 0;
if (c)
@@ -409,7 +409,7 @@ set_szc (long long value, int b, int c)
void
set_osz (long long value, int b)
{
- int mask = b2mask[b];
+ unsigned int mask = b2mask[b];
int f = 0;
if ((value & mask) == 0)
@@ -424,7 +424,7 @@ set_osz (long long value, int b)
void
set_sz (long long value, int b)
{
- int mask = b2mask[b];
+ unsigned int mask = b2mask[b];
int f = 0;
if ((value & mask) == 0)