[vte] ring: Make assertion more informative



commit 587f24ec206425b386f4b1dc5b765713f7596f9b
Author: Christian Persch <chpe gnome org>
Date:   Mon Aug 17 19:15:12 2015 +0200

    ring: Make assertion more informative
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753025

 src/ring.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ring.cc b/src/ring.cc
index 9b9f0ab..d23f191 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)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]