diff options
author | Araq <rumpf_a@web.de> | 2011-08-20 00:24:02 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-08-20 00:24:02 +0200 |
commit | d560e84fcc1171164073a31797649c26a54b03e1 (patch) | |
tree | 3466a4c3b27b1bdf10f489c130632bb6eef17975 /lib/pure | |
parent | 5cba831c8848658d67b7a00e24d9696326b9bcc9 (diff) | |
download | Nim-d560e84fcc1171164073a31797649c26a54b03e1.tar.gz |
locks now in their own core module
Diffstat (limited to 'lib/pure')
-rwxr-xr-x | lib/pure/os.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index feb2de977..ccbf98828 100755 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -516,12 +516,12 @@ proc isAbsolute*(path: string): bool {.rtl, noSideEffect, extern: "nos$1".} = ## Checks whether a given path is absolute. ## ## on Windows, network paths are considered absolute too. - var len = len(path) when doslike: + var len = len(path) result = (len > 1 and path[0] in {'/', '\\'}) or (len > 2 and path[0] in Letters and path[1] == ':') elif defined(macos): - result = len > 0 and path[0] != ':' + result = path.len > 0 and path[0] != ':' elif defined(RISCOS): result = path[0] == '$' elif defined(posix): |