diff options
Diffstat (limited to 'pjlib/src/pjlib-test/list.c')
-rw-r--r-- | pjlib/src/pjlib-test/list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/list.c b/pjlib/src/pjlib-test/list.c index d9f097c5..4184e801 100644 --- a/pjlib/src/pjlib-test/list.c +++ b/pjlib/src/pjlib-test/list.c @@ -40,7 +40,7 @@ typedef struct list_node static int compare_node(void *value, const pj_list_type *nd) { list_node *node = (list_node*)nd; - return ((int)value == node->value) ? 0 : -1; + return ((long)value == node->value) ? 0 : -1; } #define PJ_SIGNED_ARRAY_SIZE(a) ((int)PJ_ARRAY_SIZE(a)) @@ -190,7 +190,7 @@ int list_test() if (p != &nodes[i]) { return -1; } - p = (list_node*) pj_list_search(&list, (void*)i, &compare_node); + p = (list_node*) pj_list_search(&list, (void*)(long)i, &compare_node); pj_assert( p == &nodes[i] ); if (p != &nodes[i]) { return -1; |