Fix incompatible ptr warning