From a22c0a94d0e17e854e0712cc3a5cdf2bad2920ba Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Mon, 5 Oct 2020 22:41:46 +0200 Subject: [PATCH] refs #70, mingw compile fix --- include/ghc/filesystem.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index 1f1ee33..bedcf34 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -2695,8 +2695,8 @@ GHC_INLINE int path::compare(const path& p) const noexcept ++rnl1; ++rnl2; } - auto iter1 = _path.begin() + rnl1; - auto iter2 = p._path.begin() + rnl2; + auto iter1 = _path.begin() + static_cast(rnl1); + auto iter2 = p._path.begin() + static_cast(rnl2); while (iter1 != _path.end() && iter2 != p._path.end() && *iter1 == *iter2) { ++iter1; ++iter2;