#168951 - moonlightcheese - Fri Jun 05, 2009 1:48 am
getting warnings with this code:
about comparing pointers to integers. is there a better way to write this code so i don't get these warnings?
Code: |
if(bgmode) {
if(addr>=0x06010000 && addr<=0x06017FE0) { //check for valid VRAM address range return (((unsigned int)addr)>>5)&0x03FF; } } else { if(addr>=0x06014000 && addr<=0x06017FE0) { return (((unsigned int)addr)>>5)&0x03FF; //tile indices are the same in both modes } } |
about comparing pointers to integers. is there a better way to write this code so i don't get these warnings?