diff --git a/desmume/src/texcache.cpp b/desmume/src/texcache.cpp index dc9d87ef4..7e8382de7 100644 --- a/desmume/src/texcache.cpp +++ b/desmume/src/texcache.cpp @@ -69,18 +69,18 @@ public: //this MemSpan shall be considered the first argument to a standard memcmp //the length shall be as specified in this MemSpan, unless you specify otherwise - int memcmp(void* buf2, int size=-1) + int memcmp(void* buf2, int cmpSize=-1) { - if(size==-1) size = this->size; - size = min(this->size,size); + if(cmpSize==-1) cmpSize = this->size; + cmpSize = min(this->size,cmpSize); for(int i=0;isize; - size = min(this->size,size); + if(dumpSize==-1) dumpSize = this->size; + dumpSize = min(this->size,dumpSize); u8* bufptr = (u8*)buf; int done = 0; for(int i=0;isize; - size = min(this->size,size); + if(dumpSize==-1) dumpSize = this->size; + dumpSize = min(this->size,dumpSize); u16* bufptr = (u16*)buf; int done = 0; for(int i=0;i