Skip to content

Commit

Permalink
refs #121, fix for mingw compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gulrak committed May 23, 2021
1 parent a697b05 commit 9c6ff20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ghc/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<DWORD>(FILE_ATTRIBUTE_READONLY);
if(!SetFileAttributesW(cstr, new_attr)) {
auto error = ::GetLastError();
ec = detail::make_system_error(error);
Expand Down

0 comments on commit 9c6ff20

Please sign in to comment.