fix warning: assignment makes pointer from integer without a cast