fix void* arithmatic