Skip to content

Commit

Permalink
refs #88, fix signed/unsigned issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gulrak committed Jan 20, 2021
1 parent 9206877 commit 6bf13c0
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 @@ -2711,7 +2711,7 @@ GHC_INLINE path path::parent_path() const
else {
auto piter = end();
auto iter = piter.decrement(_path.end());
if(iter > _path.begin() + rootPathLen && *iter != '/') {
if(iter > _path.begin() + static_cast<long>(rootPathLen) && *iter != '/') {
--iter;
}
return path(_path.begin(), iter, format::generic_format);
Expand Down

0 comments on commit 6bf13c0

Please sign in to comment.