Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-02-12 22:21:13 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-02-12 22:21:13 +0300
commit1477028ea3efa8b769ea63e9c6f70cc9487f9480 (patch)
treeee7debf7cc4f93c2baceddf9255ecebebb1ef9c1 /intern
parent29c0cff680efe3445870acc82591ba881ea1df1c (diff)
Cycles: Fix compilation error with MinGW
Was using some C++0 which we don't officially enabled yet.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/util/util_path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_path.cpp b/intern/cycles/util/util_path.cpp
index e7a61350fbc..db3891e9ea0 100644
--- a/intern/cycles/util/util_path.cpp
+++ b/intern/cycles/util/util_path.cpp
@@ -504,9 +504,9 @@ static string path_cleanup_unc(const string& path)
static string path_make_compatible(const string& path)
{
string result = path;
- /* in Windows stat() doesn't recognize dir ending on a slash. */
+ /* In Windows stat() doesn't recognize dir ending on a slash. */
if(result.size() > 3 && result[result.size() - 1] == DIR_SEP) {
- result.pop_back();
+ result.resize(result.size() - 1);
}
/* Clean up UNC path. */
if((path.size() >= 3) && (path[0] == DIR_SEP) && (path[1] == DIR_SEP)) {