mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-23 18:14:28 +08:00
refs #88, fix signed/unsigned issue
This commit is contained in:
parent
9206877fc8
commit
6bf13c0ce1
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user