This commit is contained in:
Clay Sweetser
2014-08-07 17:52:37 -04:00
parent 0db99beecb
commit 7c3a28ae8b

View File

@@ -185,6 +185,8 @@ proc isCastable(dst, src: PType): bool =
# castableTypeKinds = {tyInt, tyPtr, tyRef, tyCstring, tyString,
# tySequence, tyPointer, tyNil, tyOpenArray,
# tyProc, tySet, tyEnum, tyBool, tyChar}
if dst.kind == tyOpenArray:
return false
var dstSize, srcSize: BiggestInt
dstSize = computeSize(dst)