util/hash: Silence comparison between signed and unsigned integer warnings in tests
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 10 Feb 2015 16:05:12 +0000 (08:05 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 17 Feb 2015 20:29:58 +0000 (12:29 -0800)
commit1424bbfb572e6165e57554c6a591282743920b5c
tree8af3743a596ec7c7591040d514505c42eac312ae
parent3d8f9570cdd8a467d76cfffb5f998977dbab8682
util/hash: Silence comparison between signed and unsigned integer warnings in tests

delete_management.c:56:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i = 0; i < size; i++) {
                  ^
delete_management.c:69:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i = size - 100; i < size; i++) {
                           ^
delete_management.c:79:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       assert(key_value(entry->key) >= size - 100 &&
                               ^
delete_management.c:79:70: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       assert(key_value(entry->key) >= size - 100 &&
                                                                      ^
insert_many.c:56:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i = 0; i < size; i++) {
                  ^
insert_many.c:62:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i = 0; i < size; i++) {
                  ^
insert_many.c:67:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    assert(ht->entries == size);
                  ^
random_entry.c:62:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i = 0; i < size; i++) {
                  ^

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/tests/hash_table/delete_management.c
src/util/tests/hash_table/insert_many.c
src/util/tests/hash_table/random_entry.c