parent
997ccc5889
commit
15157d06c3
1 changed files with 2 additions and 1 deletions
|
|
@ -220,7 +220,8 @@ proc isInvalidReturnType(conf: ConfigRef; rettype: PType): bool =
|
|||
# such a poor programming language.
|
||||
# We exclude records with refs too. This enhances efficiency and
|
||||
# is necessary for proper code generation of assignments.
|
||||
if rettype == nil: result = true
|
||||
if rettype == nil or getSize(conf, rettype) > conf.target.floatSize*3:
|
||||
result = true
|
||||
else:
|
||||
case mapType(conf, rettype, skResult)
|
||||
of ctArray:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue