Skip to content

Commit cf5333a

Browse files
committed
解决一处警告
1 parent 2833809 commit cf5333a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Util/src/StringUtil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ std::string_view StringUtil::GetFileRelativePath(std::string_view workspace, std
150150
}
151151
}
152152

153-
if (i < filePath.size() && filePath[i] == '\\' || filePath[i] == '/')
153+
if (i < filePath.size() && (filePath[i] == '\\' || filePath[i] == '/'))
154154
{
155155
i++;
156156
}

0 commit comments

Comments
 (0)