Fix build warnings for win64
Fix build warnings for win64

Win64 has a 32-bit long. Use intptr_t to work on any data model.

cliffordwolf/yosys,cliffordwolf/yosys,YosysHQ/yosys,cliffordwolf/yosys,antmicro/yosys,SymbiFlow/yosys,YosysHQ/yosys,swallat/yosys,azonenberg/yosys,SymbiFlow/yosys,YosysHQ/yosys,cliffordwolf/yosys,YosysHQ/yosys,cliffordwolf/yosys,SymbiFlow/yosys,azonenberg/yosys,SymbiFlow/yosys,antmicro/yosys,swallat/yosys,azonenberg/yosys,azonenberg/yosys,cliffordwolf/yosys,antmicro/yosys,swallat/yosys,YosysHQ/yosys,azonenberg/yosys,swallat/yosys,cliffordwolf/yosys,SymbiFlow/yosys,azonenberg/yosys,swallat/yosys,azonenberg/yosys,antmicro/yosys,SymbiFlow/yosys,swallat/yosys,YosysHQ/yosys,antmicro/yosys,SymbiFlow/yosys,swallat/yosys,swallat/yosys,azonenberg/yosys,azonenberg/yosys,antmicro/yosys,YosysHQ/yosys,antmicro/yosys,SymbiFlow/yosys,antmicro/yosys,swallat/yosys,cliffordwolf/yosys,YosysHQ/yosys,cliffordwolf/yosys