diff options
author | Abderrahim Kitouni <akitouni@gnome.org> | 2019-04-17 14:58:18 +0100 |
---|---|---|
committer | Abderrahim Kitouni <akitouni@gnome.org> | 2019-04-17 17:15:19 +0100 |
commit | bc983ed04151ed769eb9f1bb5d7f2c782f19112c (patch) | |
tree | 9cdfe6448ccc2ad770dfea36c963dc7dee2f4108 /src/ring.cc | |
parent | fdb669439066a2c531f249f0d55d4603ba1a4f24 (diff) | |
download | vte-bc983ed04151ed769eb9f1bb5d7f2c782f19112c.tar.gz |
ring: fix printf format
G_GSIZE_FORMAT was used for an of type row_t which is a gulong
This fixes 8289c7269512082cf6a3664a0622d83c37bceff1
Fixes https://gitlab.gnome.org/GNOME/vte/issues/113
Diffstat (limited to 'src/ring.cc')
-rw-r--r-- | src/ring.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ring.cc b/src/ring.cc index 2f619ac6..c356c235 100644 --- a/src/ring.cc +++ b/src/ring.cc @@ -1187,7 +1187,7 @@ Ring::rewrap(column_t columns, column_t col = 0; _vte_debug_print(VTE_DEBUG_RING, - " Old paragraph: row %" G_GSIZE_FORMAT " (text_offset %" G_GSIZE_FORMAT ") up to (exclusive) ", /* no '\n' */ + " Old paragraph: row %lu (text_offset %" G_GSIZE_FORMAT ") up to (exclusive) ", /* no '\n' */ old_row_index - 1, paragraph_start_text_offset); while (old_row_index <= m_end) { @@ -1209,7 +1209,7 @@ Ring::rewrap(column_t columns, if (!prev_record_was_soft_wrapped) /* The last paragraph can be soft wrapped! */ paragraph_len--; /* Strip trailing '\n' */ _vte_debug_print(VTE_DEBUG_RING, - "row %" G_GSIZE_FORMAT " (text_offset %" G_GSIZE_FORMAT ")%s len %" G_GSIZE_FORMAT " is_ascii %d\n", + "row %lu (text_offset %" G_GSIZE_FORMAT ")%s len %" G_GSIZE_FORMAT " is_ascii %d\n", old_row_index - 1, paragraph_end_text_offset, prev_record_was_soft_wrapped ? " soft_wrapped" : "", |