Open GoogleCodeExporter opened 9 years ago
Some more info...the only reason `get(find(nonExistantData)) == NULL` works is
because the conversion of -1 from signed integer to an unsigned integer is
still out
of bounds of the list. However, the return type is still wrong because the find
is
returning some random large number instead of -1.
Thus `find(nonExistantData) == (size_t)-1` will work, but
`find(nonExistantData) ==
-1` will not work because of the types and if you try to test around that by
using
`find(nonExistantData) < 0`, then you'll see that a positive number is returned.
Original comment by omo...@gmail.com
on 28 Mar 2010 at 4:53
I fixed this issue in my own fork here:
http://github.com/omouse/crisscross/commit/2c98ec0fe71ea7a31f753eb8703ca7e2d13ec
239
Original comment by omo...@gmail.com
on 25 Apr 2010 at 9:45
Original issue reported on code.google.com by
omo...@gmail.com
on 28 Mar 2010 at 2:16