PATCH: Change smallest_imm_type return type to unsigned int

H. J. Lu hjl@lucon.org
Wed Jan 3 22:47:00 GMT 2007


We have

unsigned int types[MAX_OPERANDS];

i.types[op] |= smallest_imm_type (i.op[op].imms->X_add_number);

Since return value of smallest_imm_type is used to set an
unsigned int, I am checking in this patch to match it.


H.J.
---
2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>

	* config/tc-i386.c (smallest_imm_type): Return unsigned int
	instead of int.

--- gas/config/tc-i386.c.type	2007-01-03 14:37:44.000000000 -0800
+++ gas/config/tc-i386.c	2007-01-03 14:43:54.000000000 -0800
@@ -918,7 +918,7 @@ fits_in_unsigned_long (offsetT num ATTRI
 #endif
 }				/* fits_in_unsigned_long() */
 
-static int
+static unsigned int
 smallest_imm_type (offsetT num)
 {
   if (cpu_arch_flags != (Cpu186 | Cpu286 | Cpu386 | Cpu486 | CpuNo64))



More information about the Binutils mailing list