This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Change smallest_imm_type return type to unsigned int


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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]