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