From Sukender, fix for incorrect for loop test.

This commit is contained in:
Robert Osfield
2010-11-01 17:02:48 +00:00
parent fb4d6b16f9
commit 7b0a500ffc

View File

@@ -115,7 +115,7 @@ bool is3DSpath(const std::string & s, bool extendedFilePaths)
// For each subdirectory
size_t tokenLen;
for (size_t tokenBegin=0, tokenEnd=0; tokenEnd == std::string::npos; tokenBegin = tokenEnd+1)
for (size_t tokenBegin=0, tokenEnd=0; tokenEnd != std::string::npos; tokenBegin = tokenEnd+1)
{
tokenEnd = s.find_first_of("/\\", tokenBegin);
if (tokenEnd != std::string::npos) tokenLen = tokenEnd-tokenBegin-1; // -1 to avoid reading the separator