[vte] ring: fix printf format
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] ring: fix printf format
- Date: Wed, 17 Apr 2019 16:16:12 +0000 (UTC)
commit bc983ed04151ed769eb9f1bb5d7f2c782f19112c
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Wed Apr 17 14:58:18 2019 +0100
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
src/ring.cc | 4 ++--
1 file 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" : "",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]