projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a36b6a4
)
fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.
author
Enrico Sada
<enrico.sada@gmail.com>
Sat, 18 Aug 2012 15:07:52 +0000
(17:07 +0200)
committer
Alex Rønne Petersen
<alexrp@xamarin.com>
Thu, 22 May 2014 07:50:56 +0000
(09:50 +0200)
eglib/src/gptrarray.c
patch
|
blob
|
history
diff --git
a/eglib/src/gptrarray.c
b/eglib/src/gptrarray.c
index 172ab69520da5e84bbf58794471f0da1f6935035..fa914607fb2c79c5359e70a0703fcbc40276b267 100644
(file)
--- a/
eglib/src/gptrarray.c
+++ b/
eglib/src/gptrarray.c
@@
-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];