diff options
author | Araq <rumpf_a@web.de> | 2016-12-02 08:37:51 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-12-02 08:37:51 +0100 |
commit | d2cbf7f242fd9f277875d182943d0cb241c95861 (patch) | |
tree | 2465835d3651db37f1569265f896ca0295cb5477 /lib | |
parent | 2eee15d7f36bc06187d347900fdd0bf78f461f5c (diff) | |
download | Nim-d2cbf7f242fd9f277875d182943d0cb241c95861.tar.gz |
more fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/gc.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 5e9be6246..c6ba639ea 100644 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -461,7 +461,7 @@ proc rawNewObj(typ: PNimType, size: int, gch: var GcHeap): pointer = gcAssert(typ.kind in {tyRef, tyString, tySequence}, "newObj: 1") collectCT(gch) var res = cast[PCell](rawAlloc(gch.region, size + sizeof(Cell))) - gcAssert typ.kind == tyString or size >= typ.base.size, "size too small" + gcAssert typ.kind in {tyString, tySequence} or size >= typ.base.size, "size too small" gcAssert((cast[ByteAddress](res) and (MemAlign-1)) == 0, "newObj: 2") # now it is buffered in the ZCT res.typ = typ |