• Matthias Clasen's avatar
    list store: Fix overflow issues · d8a0dcb1
    Matthias Clasen authored
    Check for over- and underflow when manipulating positions.
    
    This makes the sequence
      g_list_model_get_item (store, 0);
      g_list_model_get_item (store, -1u);
    return NULL for the second call, as it should.
    
    Closes: #1639
    d8a0dcb1
gliststore.c 13.1 KB