sq_position is unsigned.
Signed-off-by: Angus Salkeld <[email protected]>
---
include/corosync/sq.h | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/corosync/sq.h b/include/corosync/sq.h
index 99f953b..aa5bc1e 100644
--- a/include/corosync/sq.h
+++ b/include/corosync/sq.h
@@ -261,7 +261,6 @@ static inline unsigned int sq_item_get (
// sq_position = (sq->head - sq->head_seqid + seq_id) % sq->size;
//printf ("sq_position = %x\n", sq_position);
//printf ("ITEMGET %d %d %d %d\n", sq_position, sq->head, sq->head_seqid,
seq_id);
-assert (sq_position >= 0);
if (sq->items_inuse[sq_position] == 0) {
return (ENOENT);
}
--
1.6.6.1
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais