summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorDmitry Atamanov <data-man@users.noreply.github.com>2018-07-07 22:03:22 +0300
committerAndreas Rumpf <rumpf_a@web.de>2018-07-07 21:03:22 +0200
commita6c3bbf01a144ee2d6d3ca5f8032c52877560972 (patch)
treeba29770b190a571abb5387b1da17aca34d716812 /lib/system.nim
parent88714e77d82e65b68da79bbff1b491e56f874a08 (diff)
downloadNim-a6c3bbf01a144ee2d6d3ca5f8032c52877560972.tar.gz
Add proc toOpenArray[byte] for strings (#7820)
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 32a88de64..d59551d54 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -4164,7 +4164,8 @@ when not defined(js):
     magic: "Slice".}
   proc toOpenArray*(x: string; first, last: int): openarray[char] {.
     magic: "Slice".}
-
+  proc toOpenArrayByte*(x: string; first, last: int): openarray[byte] {.
+    magic: "Slice".}
 
 type
   ForLoopStmt* {.compilerProc.} = object ## special type that marks a macro