refs #88, fix signed/unsigned issue

This commit is contained in:
Steffen Schuemann 2021-01-21 00:23:15 +01:00
parent 9206877fc8
commit 6bf13c0ce1

View File

@ -2711,7 +2711,7 @@ GHC_INLINE path path::parent_path() const
else { else {
auto piter = end(); auto piter = end();
auto iter = piter.decrement(_path.end()); auto iter = piter.decrement(_path.end());
if(iter > _path.begin() + rootPathLen && *iter != '/') { if(iter > _path.begin() + static_cast<long>(rootPathLen) && *iter != '/') {
--iter; --iter;
} }
return path(_path.begin(), iter, format::generic_format); return path(_path.begin(), iter, format::generic_format);