summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorClay Sweetser <clay.sweetser@gmail.com>2014-08-07 17:52:37 -0400
committerClay Sweetser <clay.sweetser@gmail.com>2014-08-07 17:52:37 -0400
commit7c3a28ae8b258415918fa9c852cbcb7d9fbde2b7 (patch)
tree630039b8fe60a44b6d9a1bddfdd117723a9946fe /compiler
parent0db99beecb6c28e2a5d9ee54670125d88d0b9378 (diff)
downloadNim-7c3a28ae8b258415918fa9c852cbcb7d9fbde2b7.tar.gz
Fix #1424
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semexprs.nim2
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)