diff options
Diffstat (limited to 'source/blender/freestyle/intern/system/StringUtils.cpp')
-rw-r--r-- | source/blender/freestyle/intern/system/StringUtils.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/system/StringUtils.cpp b/source/blender/freestyle/intern/system/StringUtils.cpp index 1ecd5a2126d..fbd85815da1 100644 --- a/source/blender/freestyle/intern/system/StringUtils.cpp +++ b/source/blender/freestyle/intern/system/StringUtils.cpp @@ -10,6 +10,8 @@ #include "StringUtils.h" #include "FreestyleConfig.h" +#include "BLI_sys_types.h" + namespace Freestyle::StringUtils { void getPathName(const string &path, const string &base, vector<string> &pathnames) @@ -17,13 +19,13 @@ void getPathName(const string &path, const string &base, vector<string> &pathnam string dir; string res; char cleaned[FILE_MAX]; - unsigned size = path.size(); + uint size = path.size(); pathnames.push_back(base); - for (unsigned int pos = 0, sep = path.find(Config::PATH_SEP, pos); pos < size; + for (uint pos = 0, sep = path.find(Config::PATH_SEP, pos); pos < size; pos = sep + 1, sep = path.find(Config::PATH_SEP, pos)) { - if (sep == (unsigned)string::npos) { + if (sep == uint(string::npos)) { sep = size; } |