diff --git a/target-arm/helper.c b/target-arm/helper.c index 5d70ef193b01eca304526a4e66a3967541731e4d..8e8543525297939287b5b08045997ed013f85932 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -1985,7 +1985,7 @@ static inline uint8_t sub8_sat(uint8_t a, uint8_t b) #include "op_addsub.h" /* Unsigned saturating arithmetic. */ -static inline uint16_t add16_usat(uint16_t a, uint8_t b) +static inline uint16_t add16_usat(uint16_t a, uint16_t b) { uint16_t res; res = a + b; @@ -1994,7 +1994,7 @@ static inline uint16_t add16_usat(uint16_t a, uint8_t b) return res; } -static inline uint16_t sub16_usat(uint16_t a, uint8_t b) +static inline uint16_t sub16_usat(uint16_t a, uint16_t b) { if (a < b) return a - b;