]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-avr.c
Make frag fr_fix unsigned
[thirdparty/binutils-gdb.git] / gas / config / tc-avr.c
index 7886022357ab39d6ff90d1e4fa2e393bcc181008..df0833c761c0a08139bc513a6b9ea6e894a8b20b 100644 (file)
@@ -2635,8 +2635,8 @@ avr_patch_gccisr_frag (fragS *fr, int reg)
   /* Turn frag into ordinary code frag of now known size.  */
 
   fr->fr_var = 0;
-  fr->fr_fix = (offsetT) (where - fr->fr_literal);
-  gas_assert (fr->fr_fix <= fr->fr_offset);
+  fr->fr_fix = where - fr->fr_literal;
+  gas_assert (fr->fr_fix <= (valueT) fr->fr_offset);
   fr->fr_offset = 0;
   fr->fr_type = rs_fill;
   fr->fr_subtype = 0;