mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 10:52:14 +00:00
Lower numbers for unchecked array
This commit is contained in:
@@ -185,7 +185,7 @@ else:
|
||||
import locks
|
||||
|
||||
type
|
||||
SharedArray {.unchecked.}[T] = array[0..100_000_000, T]
|
||||
SharedArray {.unchecked.}[T] = array[0..100, T]
|
||||
|
||||
proc allocSharedArray[T](nsize: int): ptr SharedArray[T] =
|
||||
result = cast[ptr SharedArray[T]](allocShared0(sizeof(T) * nsize))
|
||||
|
||||
Reference in New Issue
Block a user