From 6610dc6daa661b7cd042bc6313a29859b87263d9 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Fri, 13 May 2016 04:05:59 -0400 Subject: [PATCH] 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 * config/tc-cr16.c (check_range): Make type of retval op_err. * config/tc-crx.c: Likewise. --- gas/ChangeLog | 5 +++++ gas/config/tc-cr16.c | 2 +- gas/config/tc-crx.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 64e890b278c..41518df420a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2016-05-24 Trevor Saunders + + * config/tc-cr16.c (check_range): Make type of retval op_err. + * config/tc-crx.c: Likewise. + 2016-05-23 Claudiu Zissulescu * config/tc-arc.c (md_begin): Add XY registers. diff --git a/gas/config/tc-cr16.c b/gas/config/tc-cr16.c index b7fffa78780..229f51adde2 100644 --- a/gas/config/tc-cr16.c +++ b/gas/config/tc-cr16.c @@ -1993,7 +1993,7 @@ static op_err check_range (long *num, int bits, int unsigned flags, int update) { long min, max; - int retval = OP_LEGAL; + op_err retval = OP_LEGAL; long value = *num; if (bits == 0 && value > 0) return OP_OUT_OF_RANGE; diff --git a/gas/config/tc-crx.c b/gas/config/tc-crx.c index 4b829c2560f..9a943d530fe 100644 --- a/gas/config/tc-crx.c +++ b/gas/config/tc-crx.c @@ -1325,7 +1325,7 @@ static op_err check_range (long *num, int bits, int unsigned flags, int update) { uint32_t max; - int retval = OP_LEGAL; + op_err retval = OP_LEGAL; int bin; uint32_t upper_64kb = 0xffff0000; uint32_t value = *num; -- 2.30.2