From 1d6c256b2a34f898d110d3375080de250ef6f000 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 14 Apr 2018 21:38:23 +0200 Subject: [PATCH] correct separator replacement --- ostd/path.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }