fix missing void pointer explicit type cast