In the unit tests, use "test_eq_ptr" and "test_neq_ptr" consistently

This is part of what's needed to build without warnings on mingw64:
it was warning about the cast from void* to long that happened in
the places we were using test_{n,}eq on pointers.

The alternative here would have been to broaden tt_int_op to accept
a long long or an intptr_t, but that's less correct (since pointers
aren't integers), and would hurt the portability of tinytest a
little.

Fixes part of 7260.
This commit is contained in:
Nick Mathewson
2012-11-02 14:32:05 -04:00
parent 1bfda600c3
commit 4458fd0cd8
5 changed files with 14 additions and 13 deletions
+1
View File
@@ -1,2 +1,3 @@
o Minor bugfixes:
- Compile on win64 using mingw64. Fixes bug 7260; patches from "yayooo".