From 9c6ff202e7cb9c025805e0bcd51fe08cafa62f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Sch=C3=BCmann?= Date: Sun, 23 May 2021 11:29:04 +0200 Subject: [PATCH] refs #121, fix for mingw compile issue --- include/ghc/filesystem.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index c2fd72b..20fca5c 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -4650,7 +4650,7 @@ GHC_INLINE bool remove(const path& p, std::error_code& ec) noexcept ec = detail::make_system_error(error); } else if(attr & FILE_ATTRIBUTE_READONLY) { - auto new_attr = attr & ~FILE_ATTRIBUTE_READONLY; + auto new_attr = attr & ~static_cast(FILE_ATTRIBUTE_READONLY); if(!SetFileAttributesW(cstr, new_attr)) { auto error = ::GetLastError(); ec = detail::make_system_error(error);