Silence a bunch of warnings and fix one bug.
Don't do math on void* pointers.