summary refs log tree commit diff stats
path: root/compiler/llstream.nim
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-09-14 18:34:56 -0500
committerGanesh Viswanathan <dev@genotrance.com>2018-09-14 18:34:56 -0500
commit80520eef3cce0b3145dedc71a6652429adb9cc9e (patch)
treed64725d2749cb82bfef997bbbdb443cc4827de6d /compiler/llstream.nim
parente07a256f74b9e89e49287c8a21c1334af43e27c2 (diff)
parentb9dc486db15bb1b4b6f3cef7626733b904d377f7 (diff)
downloadNim-80520eef3cce0b3145dedc71a6652429adb9cc9e.tar.gz
Merge remote-tracking branch 'upstream/devel' into test-6483
Diffstat (limited to 'compiler/llstream.nim')
-rw-r--r--compiler/llstream.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/llstream.nim b/compiler/llstream.nim
index 9cd329320..e1108147f 100644
--- a/compiler/llstream.nim
+++ b/compiler/llstream.nim
@@ -10,7 +10,7 @@
 ## Low-level streams for high performance.
 
 import
-  strutils
+  strutils, pathutils
 
 # support '-d:useGnuReadline' for backwards compatibility:
 when not defined(windows) and (defined(useGnuReadline) or defined(useLinenoise)):
@@ -41,10 +41,10 @@ proc llStreamOpen*(f: File): PLLStream =
   result.f = f
   result.kind = llsFile
 
-proc llStreamOpen*(filename: string, mode: FileMode): PLLStream =
+proc llStreamOpen*(filename: AbsoluteFile, mode: FileMode): PLLStream =
   new(result)
   result.kind = llsFile
-  if not open(result.f, filename, mode): result = nil
+  if not open(result.f, filename.string, mode): result = nil
 
 proc llStreamOpen*(): PLLStream =
   new(result)