fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.
authorEnrico Sada <enrico.sada@gmail.com>
Sat, 18 Aug 2012 15:07:52 +0000 (17:07 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Thu, 22 May 2014 07:50:56 +0000 (09:50 +0200)
eglib/src/gptrarray.c

index 172ab69520da5e84bbf58794471f0da1f6935035..fa914607fb2c79c5359e70a0703fcbc40276b267 100644 (file)
@@ -126,7 +126,7 @@ g_ptr_array_remove_index(GPtrArray *array, guint index)
        gpointer removed_node;
        
        g_return_val_if_fail(array != NULL, NULL);
-       g_return_val_if_fail(index >= 0 || index < array->len, NULL);
+       g_return_val_if_fail(index < array->len, NULL);
 
        removed_node = array->pdata[index];