* config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoid
authorNick Clifton <nickc@redhat.com>
Fri, 17 Jul 2009 15:22:11 +0000 (15:22 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 17 Jul 2009 15:22:11 +0000 (15:22 +0000)
        compile time warning.

gas/ChangeLog
gas/config/tc-avr.c

index f2f48df..576c858 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-17  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoid
+       compile time warning.
+
 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/tc-i386.c (md_assemble): Only check i.operands for AX.
index f9abe4c..eae2102 100644 (file)
@@ -1244,7 +1244,7 @@ md_apply_fix (fixS *fixP, valueT * valP, segT seg)
     }
   else
     {
-      switch (fixP->fx_r_type)
+      switch ((int) fixP->fx_r_type)
        {
        case -BFD_RELOC_AVR_HI8_LDI_NEG:
        case -BFD_RELOC_AVR_HI8_LDI: