build: don't perform arithmetic on void* pointers