From 6bf13c0ce138e9e0cf902519c21f0a61e593e73e Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Thu, 21 Jan 2021 00:23:15 +0100 Subject: [PATCH] refs #88, fix signed/unsigned 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 2a3724b..3ac0129 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -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(rootPathLen) && *iter != '/') { --iter; } return path(_path.begin(), iter, format::generic_format);