Put brackets around a possible noop inside an if.

This commit is contained in:
riccardom 2009-01-15 21:09:43 +00:00
parent e8b3a77331
commit 6740cc3b7d
1 changed files with 4 additions and 4 deletions

View File

@ -148,9 +148,9 @@ static MemSpan MemSpan_TexMem(u32 ofs, u32 len)
currofs += curr.len;
u8* ptr = ARM9Mem.textureSlotAddr[slot];
if(ptr == ARM9Mem.blank_memory)
if(ptr == ARM9Mem.blank_memory) {
PROGINFO("Tried to reference unmapped texture memory: slot %d\n",slot);
}
curr.ptr = ptr + curr.start;
}
return ret;
@ -179,9 +179,9 @@ static MemSpan MemSpan_TexPalette(u32 ofs, u32 len)
currofs += curr.len;
u8* ptr = ARM9Mem.texPalSlot[slot];
if(ptr == ARM9Mem.blank_memory)
if(ptr == ARM9Mem.blank_memory) {
PROGINFO("Tried to reference unmapped texture palette memory: 16k slot #%d\n",slot);
}
curr.ptr = ptr + curr.start;
}
return ret;