fixed potential issue about void* arithmetic