summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2015-08-17 19:15:12 +0200
committerChristian Persch <chpe@gnome.org>2015-08-17 19:15:12 +0200
commit587f24ec206425b386f4b1dc5b765713f7596f9b (patch)
tree761a05d734f0c08aab6d467111a335f99865f5d0
parentc1db666000f9c8e3d05930690926a6d7908e8e41 (diff)
downloadvte-587f24ec206425b386f4b1dc5b765713f7596f9b.tar.gz
ring: Make assertion more informative
https://bugzilla.gnome.org/show_bug.cgi?id=753025
-rw-r--r--src/ring.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ring.cc b/src/ring.cc
index 9b9f0ab7..d23f1913 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -759,7 +759,7 @@ _vte_frozen_row_text_offset_to_column (VteRing *ring,
return TRUE;
}
- g_assert(position < ring->writable);
+ g_assert_cmpuint(position, <, ring->writable);
if (!_vte_ring_read_row_record (ring, &records[0], position))
return FALSE;
if ((position + 1) * sizeof (records[0]) < _vte_stream_head (ring->row_stream)) {