diff options
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-cr16.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 4f098cd..8433afd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2010-11-05 Nick Clifton <nickc@redhat.com> + + * config/tc-cr16.c (getprocreg_image): Fix typo MAX_PREG -> + MAX_REG. + (getprocregp_image): Likewise. + 2010-11-05 Tristan Gingold <gingold@adacore.com> * po/gas.pot: Regenerate diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c index 2a5b2f7..a6185f9 100644 --- a/gas/config/tc-cr16.c +++ b/gas/config/tc-cr16.c @@ -1669,7 +1669,7 @@ getprocreg_image (reg r) char *reg_name; /* Check whether the register is in registers table. */ - if (r < MAX_PREG) + if (r < MAX_REG) rreg = &cr16_pregtab[r - MAX_REG]; /* Register not found. */ else @@ -1708,7 +1708,7 @@ getprocregp_image (reg r) int pregptab_disp = 0; /* Check whether the register is in registers table. */ - if (r < MAX_PREG) + if (r < MAX_REG) { r = r - MAX_REG; switch (r) |