summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorTomohiro <gpuppur@gmail.com>2019-10-01 16:09:59 +0900
committerAndreas Rumpf <rumpf_a@web.de>2019-10-01 09:09:59 +0200
commit64d5e2582164a965e05934e9c9b5c371a04f2765 (patch)
tree0cad9fc3ae0d5dde750af77a2e0f347b4d3ac4c0 /lib/pure
parent6dd4cbc3af07eea60e2ae3bd15751bf72e195069 (diff)
downloadNim-64d5e2582164a965e05934e9c9b5c371a04f2765.tar.gz
Fix how `relativePath` handle case sensitiviy (#12312) [backport]
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/os.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index e8ece37c1..45d28c6ee 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -232,9 +232,9 @@ proc splitPath*(path: string): tuple[head, tail: string] {.
     result.tail = path
 
 when FileSystemCaseSensitive:
-  template `!=?`(a, b: char): bool = toLowerAscii(a) != toLowerAscii(b)
-else:
   template `!=?`(a, b: char): bool = a != b
+else:
+  template `!=?`(a, b: char): bool = toLowerAscii(a) != toLowerAscii(b)
 
 proc relativePath*(path, base: string; sep = DirSep): string {.
   noSideEffect, rtl, extern: "nos$1", raises: [].} =