fixed compiling error

This commit is contained in:
SushiTee 2010-10-17 15:40:01 +02:00 committed by oy
parent 0edad8e640
commit 1127c7b830

View file

@ -1862,7 +1862,7 @@ static void ExtractName(const char *pFileName, char *pName, int BufferSize)
pEnd = pFileName;
}
int Length = pEnd > pExtractedName ? min(BufferSize, pEnd-pExtractedName+1) : BufferSize;
int Length = pEnd > pExtractedName ? min(BufferSize, (int)(pEnd-pExtractedName+1)) : BufferSize;
str_copy(pName, pExtractedName, Length);
}