* mips-tdep.c (mips_read_processor_type): Add parens around
bitwise-and operands in comparison; previous expression always evaluated to 0 because of equality comparison of two constants.
This commit is contained in:
parent
58b4fad226
commit
80e0e92aaa
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
|
||||
|
||||
* mips-tdep.c (mips_read_processor_type): Add parens around
|
||||
bitwise-and operands in comparison; previous expression always
|
||||
evaluated to 0 because of equality comparison of two constants.
|
||||
|
||||
* rs6000-tdep.c (skip_prologue): Add missing parens around
|
||||
operands of logical-or so that first operand does not bind
|
||||
to previous logical-and.
|
||||
|
|
|
@ -1505,7 +1505,7 @@ mips_read_processor_type ()
|
|||
|
||||
prid = read_register (PRID_REGNUM);
|
||||
|
||||
if (prid & ~0xf == 0x700)
|
||||
if ((prid & ~0xf) == 0x700)
|
||||
return savestring ("r3041", strlen("r3041"));
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue