forked from Imagelibrary/binutils-gdb
Index: common/ChangeLog
2003-08-28 Andrew Cagney <cagney@redhat.com> * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof. * sim-options.c (print_help): Cast the format with specifier to "int". Index: mn10300/ChangeLog 2003-08-28 Andrew Cagney <cagney@redhat.com> * dv-mn103ser.c (do_polling_event): Change type of "serial_reg" to "long". (read_status_reg): Cast "serial_reg" to "long". * dv-mn103tim.c (do_counter_event): Change type of "timer_nr" to "long". (do_counter6_event, write_mode_reg, write_tm6md): Ditto.
This commit is contained in:
@@ -769,7 +769,10 @@ print_help (SIM_DESC sd, sim_cpu *cpu, const struct option_list *ol, int is_comm
|
||||
end --;
|
||||
if (end == chp)
|
||||
end = chp + doc_width - 1;
|
||||
sim_io_printf (sd, "%.*s\n%*s", end - chp, chp, indent, "");
|
||||
/* The cast should be ok - its distances between to
|
||||
points in a string. */
|
||||
sim_io_printf (sd, "%.*s\n%*s", (int) (end - chp), chp, indent,
|
||||
"");
|
||||
chp = end;
|
||||
while (isspace (*chp) && *chp != '\0')
|
||||
chp++;
|
||||
|
||||
Reference in New Issue
Block a user