fix void * arithmatic warning