Fix void* arithmetic warning (-Wpointer-arith)