summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 8b587320f..508b7a10a 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -189,7 +189,8 @@ template <typename T>
return {};
}
last = std::min<std::size_t>(last, vector.size());
- return std::vector<T>(vector.begin() + first, vector.begin() + first + last);
+ return std::vector<T>(vector.begin() + static_cast<std::ptrdiff_t>(first),
+ vector.begin() + static_cast<std::ptrdiff_t>(first + last));
}
enum class DirectorySeparator {