diff --git a/stack_strings.nim b/stack_strings.nim index f53a8bd..9721d15 100644 --- a/stack_strings.nim +++ b/stack_strings.nim @@ -816,7 +816,7 @@ template toOpenArray*(this: StackString): untyped = ## Converts the [StackString] to `openArray[char]`. ## Thanks to ElegantBeef for help on this template. - this.data.toOpenArray(0, this.len) + this.data.toOpenArray(0, this.high) template toCstring*(this: StackString): cstring = ## Converts the [StackString] to `cstring`. diff --git a/stack_strings.nimble b/stack_strings.nimble index 283789d..1a13ba6 100644 --- a/stack_strings.nimble +++ b/stack_strings.nimble @@ -1,6 +1,6 @@ # Package -version = "1.1.1" +version = "1.1.2" author = "termer" description = "Library for guaranteed zero heap allocation strings" license = "MIT"