Fix a compilation issue when testing nim-stew
This commit is contained in:
parent
2334aa0fb3
commit
e4da0b36c5
|
@ -40,7 +40,9 @@
|
||||||
type
|
type
|
||||||
StackArray*[T] = object
|
StackArray*[T] = object
|
||||||
bufferLen: int32
|
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):
|
when defined(windows):
|
||||||
proc alloca(n: int): pointer {.importc, header: "<malloc.h>".}
|
proc alloca(n: int): pointer {.importc, header: "<malloc.h>".}
|
||||||
|
|
Loading…
Reference in New Issue