fixes #4845
This commit is contained in:
parent
7906527297
commit
3a5dfd6a03
1 changed files with 3 additions and 1 deletions
|
|
@ -136,8 +136,10 @@ proc isCastable(dst, src: PType): bool =
|
||||||
# tyProc, tySet, tyEnum, tyBool, tyChar}
|
# tyProc, tySet, tyEnum, tyBool, tyChar}
|
||||||
if skipTypes(dst, abstractInst-{tyOpenArray}).kind == tyOpenArray:
|
if skipTypes(dst, abstractInst-{tyOpenArray}).kind == tyOpenArray:
|
||||||
return false
|
return false
|
||||||
var dstSize, srcSize: BiggestInt
|
if skipTypes(src, abstractInst-{tyTypeDesc}).kind == tyTypeDesc:
|
||||||
|
return false
|
||||||
|
|
||||||
|
var dstSize, srcSize: BiggestInt
|
||||||
dstSize = computeSize(dst)
|
dstSize = computeSize(dst)
|
||||||
srcSize = computeSize(src)
|
srcSize = computeSize(src)
|
||||||
if dstSize < 0:
|
if dstSize < 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue