Fix a compilation issue when testing nim-stew

This commit is contained in:
Zahary Karadjov 2019-07-31 02:11:41 +03:00
parent 2334aa0fb3
commit e4da0b36c5
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@
type
StackArray*[T] = object
bufferLen: int32
buffer: ptr UncheckedArray[T]
# TODO For some reason, this needs to be public with Nim 0.19.6
# in order to compile the test suite of nim-stew:
buffer*: ptr UncheckedArray[T]
when defined(windows):
proc alloca(n: int): pointer {.importc, header: "<malloc.h>".}