Commit 460a09c1fbf59754904a086977f5cc70f278f498

Authored by pbrook
1 parent cefec4f5

Fix incorrect argument types.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4291 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-arm/helper.c
... ... @@ -1985,7 +1985,7 @@ static inline uint8_t sub8_sat(uint8_t a, uint8_t b)
1985 1985 #include "op_addsub.h"
1986 1986  
1987 1987 /* Unsigned saturating arithmetic. */
1988   -static inline uint16_t add16_usat(uint16_t a, uint8_t b)
  1988 +static inline uint16_t add16_usat(uint16_t a, uint16_t b)
1989 1989 {
1990 1990 uint16_t res;
1991 1991 res = a + b;
... ... @@ -1994,7 +1994,7 @@ static inline uint16_t add16_usat(uint16_t a, uint8_t b)
1994 1994 return res;
1995 1995 }
1996 1996  
1997   -static inline uint16_t sub16_usat(uint16_t a, uint8_t b)
  1997 +static inline uint16_t sub16_usat(uint16_t a, uint16_t b)
1998 1998 {
1999 1999 if (a < b)
2000 2000 return a - b;
... ...