diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-05 12:57:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-05 12:57:58 +0100 |
commit | 2d0e4061c78be4c7d1fc713a7e2f199f26134658 (patch) | |
tree | eb68a54f825e13e7e1652820a37a7fe8fefeedc6 /src/libutil/heap.c | |
parent | 39fec823f124a82dd6a4bcd06a53a0ff062f4ac0 (diff) | |
download | rspamd-2d0e4061c78be4c7d1fc713a7e2f199f26134658.tar.gz rspamd-2d0e4061c78be4c7d1fc713a7e2f199f26134658.zip |
[Minor] Fix couple of warnings and disable -pedantic mode
Diffstat (limited to 'src/libutil/heap.c')
-rw-r--r-- | src/libutil/heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/heap.c b/src/libutil/heap.c index f5084e4b0..ae8e14131 100644 --- a/src/libutil/heap.c +++ b/src/libutil/heap.c @@ -193,7 +193,7 @@ struct rspamd_min_heap_elt* rspamd_min_heap_index (struct rspamd_min_heap *heap, guint idx) { g_assert (heap != NULL); - g_assert (idx >= 0 && idx < heap->ar->len); + g_assert (idx < heap->ar->len); return g_ptr_array_index (heap->ar, idx); } |