diff options
author | Thomas White <taw@physics.org> | 2017-08-10 22:50:28 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-08-10 22:50:28 +0200 |
commit | 49093ef29d877c91e0376f1532247721d56d7caa (patch) | |
tree | ed639a3631568a2aaab2f3b61e6000730107f2f0 /src/frame.c | |
parent | 3f4038c8a6c872d0d0c09dcc9afe81f138d552c9 (diff) |
Add some missing casts
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index 480b4e7..bc96f4a 100644 --- a/src/frame.c +++ b/src/frame.c @@ -988,7 +988,7 @@ void delete_text_from_frame(struct frame *fr, struct edit_pos p1, struct edit_po /* Update offsets for all subsequent paragraphs, but only if they're * from the same SCBlock */ - printf("fixing offsets from para %i by %i\n", p1.para, del); + printf("fixing offsets from para %i by %i\n", p1.para, (int)del); fix_scblock_offsets(fr, p1, del); } @@ -1044,7 +1044,7 @@ size_t delete_text_in_paragraph(Paragraph *para, size_t offs1, ssize_t offs2) scblock_offs1 = ds + run->scblock_offs_bytes; scblock_offs2 = de + run->scblock_offs_bytes; sum_del += scblock_offs2 - scblock_offs1; - printf("del %i %i\n", scblock_offs1, scblock_offs2); + printf("del %i %i\n", (int)scblock_offs1, (int)scblock_offs2); scblock_delete_text(run->scblock, scblock_offs1, scblock_offs2); /* Fix up the offsets of the subsequent text runs */ |