[求助]assignment makes integer from pointer without a cast
程序代码:
extern unsigned int *regs[8]; extern void *mm; int gdata(char type, int para) { int db = 0; if(type == 0 || type == 1) { // 寄存器直接 db = *(regs + para); if(type == 1)db = gdata(3, db); // 寄存器间接 } else if(type == 2 || type == 3) { // 立即数直接 db = para; if(type == 3)db = (int*)(mm + db); } return db; }
D:\ldbg\vpb.c||In function 'gdata':|
D:\ldbg\vpb.c|10|warning: assignment makes integer from pointer without a cast|
D:\ldbg\vpb.c|17|warning: assignment makes integer from pointer without a cast|