Fix compiler warnings for VS2010 /W4 in search.c.

- Working towards issue #11.
- Implicit conversions to explicit ones.