Skip to contentSkip to conversation

[4291] Fix incorrect argument types.

Qemu-devel Paul Brook 1 participant 1 message May 1, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 4291

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4291
Author:   pbrook
Date:     2008-05-01 12:04:35 +0000 (Thu, 01 May 2008)

Log Message:
-----------
Fix incorrect argument types.

Modified Paths:
--------------
trunk/target-arm/helper.c

Modified: trunk/target-arm/helper.c
===================================================================

target-arm/helper.c +2 -2
@@ -1985,7 +1985,7 @@
 #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 @@
     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;