From d3c7cfd14add4b54ece1e3a835c08501d1b6f94f Mon Sep 17 00:00:00 2001 From: Denis Date: Wed, 15 Jun 2011 05:50:05 -0700 Subject: [PATCH] The ping is accepted. --- std/path.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/path.d b/std/path.d index 7b086d1df..4e1d26d56 100644 --- a/std/path.d +++ b/std/path.d @@ -53,11 +53,11 @@ version(Windows) static assert(sep.length == 1 && altsep.length == 1); private bool isSep(dchar ch) { - return (ch == sep[0]) | (ch == altsep[0]); + return ch == sep[0] || ch == altsep[0]; } private bool isSepOrDriveSep(dchar ch) { - return isSep(ch) | (ch == ':'); + return isSep(ch) || ch == ':'; } } version(Posix)