mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
change some variable's type to op_err
They only hold values from the op_err enum, so it should be clearer to give them the enum type. gas/ChangeLog: 2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * config/tc-cr16.c (check_range): Make type of retval op_err. * config/tc-crx.c: Likewise.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2016-05-24 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
||||||
|
|
||||||
|
* config/tc-cr16.c (check_range): Make type of retval op_err.
|
||||||
|
* config/tc-crx.c: Likewise.
|
||||||
|
|
||||||
2016-05-23 Claudiu Zissulescu <claziss@synopsys.com>
|
2016-05-23 Claudiu Zissulescu <claziss@synopsys.com>
|
||||||
|
|
||||||
* config/tc-arc.c (md_begin): Add XY registers.
|
* config/tc-arc.c (md_begin): Add XY registers.
|
||||||
|
@ -1993,7 +1993,7 @@ static op_err
|
|||||||
check_range (long *num, int bits, int unsigned flags, int update)
|
check_range (long *num, int bits, int unsigned flags, int update)
|
||||||
{
|
{
|
||||||
long min, max;
|
long min, max;
|
||||||
int retval = OP_LEGAL;
|
op_err retval = OP_LEGAL;
|
||||||
long value = *num;
|
long value = *num;
|
||||||
|
|
||||||
if (bits == 0 && value > 0) return OP_OUT_OF_RANGE;
|
if (bits == 0 && value > 0) return OP_OUT_OF_RANGE;
|
||||||
|
@ -1325,7 +1325,7 @@ static op_err
|
|||||||
check_range (long *num, int bits, int unsigned flags, int update)
|
check_range (long *num, int bits, int unsigned flags, int update)
|
||||||
{
|
{
|
||||||
uint32_t max;
|
uint32_t max;
|
||||||
int retval = OP_LEGAL;
|
op_err retval = OP_LEGAL;
|
||||||
int bin;
|
int bin;
|
||||||
uint32_t upper_64kb = 0xffff0000;
|
uint32_t upper_64kb = 0xffff0000;
|
||||||
uint32_t value = *num;
|
uint32_t value = *num;
|
||||||
|
Reference in New Issue
Block a user