diff options
author | Clay Sweetser <clay.sweetser@gmail.com> | 2014-08-07 17:52:37 -0400 |
---|---|---|
committer | Clay Sweetser <clay.sweetser@gmail.com> | 2014-08-07 17:52:37 -0400 |
commit | 7c3a28ae8b258415918fa9c852cbcb7d9fbde2b7 (patch) | |
tree | 630039b8fe60a44b6d9a1bddfdd117723a9946fe /compiler | |
parent | 0db99beecb6c28e2a5d9ee54670125d88d0b9378 (diff) | |
download | Nim-7c3a28ae8b258415918fa9c852cbcb7d9fbde2b7.tar.gz |
Fix #1424
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 7deb46af9..c8d95886d 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -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) |