diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-05-05 20:09:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-05-05 20:09:06 +0000 |
commit | e6ac85a8cc75ace50d5b64d324b50aaa112aff03 (patch) | |
tree | 0f9ce77b7bfe22cc0e8eb7abf65bca6bb47df757 /src/or/test.c | |
parent | 0ce8901aa0ddf533aea2d7a41a29f0b720fc4dc4 (diff) | |
download | tor-e6ac85a8cc75ace50d5b64d324b50aaa112aff03.tar.gz tor-e6ac85a8cc75ace50d5b64d324b50aaa112aff03.zip |
Fix compilation warnings on 64-bit platforms
svn:r1793
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/or/test.c b/src/or/test.c index 9c8ca78069..21913af25a 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -479,16 +479,16 @@ test_util() { smartlist_add(sl, (void*)2); smartlist_add(sl, (void*)3); smartlist_add(sl, (void*)4); - test_eq(2, (int)smartlist_del_keeporder(sl, 1)); + test_eq((void*)2, smartlist_del_keeporder(sl, 1)); smartlist_insert(sl, 1, (void*)22); smartlist_insert(sl, 0, (void*)0); smartlist_insert(sl, 5, (void*)555); - test_eq(0, (int)smartlist_get(sl,0)); - test_eq(1, (int)smartlist_get(sl,1)); - test_eq(22, (int)smartlist_get(sl,2)); - test_eq(3, (int)smartlist_get(sl,3)); - test_eq(4, (int)smartlist_get(sl,4)); - test_eq(555, (int)smartlist_get(sl,5)); + test_eq((void*)0, smartlist_get(sl,0)); + test_eq((void*)1, smartlist_get(sl,1)); + test_eq((void*)22, smartlist_get(sl,2)); + test_eq((void*)3, smartlist_get(sl,3)); + test_eq((void*)4, smartlist_get(sl,4)); + test_eq((void*)555, smartlist_get(sl,5)); /* XXXX test older functions. */ smartlist_free(sl); } |