Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
This commit is contained in:
commit
037d7e4e5d
10 changed files with 170 additions and 54 deletions
|
|
@ -199,6 +199,8 @@ proc isCastable(dst, src: PType): bool =
|
|||
result = (dstSize >= srcSize) or
|
||||
(skipTypes(dst, abstractInst).kind in IntegralTypes) or
|
||||
(skipTypes(src, abstractInst-{tyTypeDesc}).kind in IntegralTypes)
|
||||
if result and src.kind == tyNil:
|
||||
result = dst.size <= platform.ptrSize
|
||||
|
||||
proc isSymChoice(n: PNode): bool {.inline.} =
|
||||
result = n.kind in nkSymChoices
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue