Improve handling of REPT pseudo op with a negative count.
[external/binutils.git] / gas / config / tc-tic54x.c
index cbc4a19..f7dc0f5 100644 (file)
@@ -2031,7 +2031,7 @@ tic54x_loop (int count)
   if (!is_end_of_line[(int) *input_line_pointer])
     count = get_absolute_expression ();
 
-  do_repeat (count, "LOOP", "ENDLOOP");
+  do_repeat ((size_t) count, "LOOP", "ENDLOOP");
 }
 
 /* Normally, endloop gets eaten by the preceding loop.  */