diff --git a/ostd/path.hh b/ostd/path.hh index c06c1dc..6c02d4a 100644 --- a/ostd/path.hh +++ b/ostd/path.hh @@ -313,7 +313,7 @@ private: if (is_sep(*p)) { std::size_t cnt = 0; for (;;) { - if (p[cnt + 1] == sep) { + if (is_sep(p[cnt + 1])) { ++cnt; continue; }