diff options
author | Enrico Sada <enrico.sada@gmail.com> | 2012-08-18 19:08:56 +0400 |
---|---|---|
committer | Alex Rønne Petersen <alexrp@xamarin.com> | 2014-05-22 11:51:14 +0400 |
commit | 8251d2b335ac4bf2020fc639d69eadcc10608311 (patch) | |
tree | b5b031f4a8357f265c3b92ebca72a70cc2b0d04a /eglib | |
parent | 759115c18804a41bb830db26a7adb1d95c701cdb (diff) |
fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.
Diffstat (limited to 'eglib')
-rw-r--r-- | eglib/src/gptrarray.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eglib/src/gptrarray.c b/eglib/src/gptrarray.c index fa914607fb2..d3e540733bd 100644 --- a/eglib/src/gptrarray.c +++ b/eglib/src/gptrarray.c @@ -147,7 +147,7 @@ g_ptr_array_remove_index_fast(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]; |