mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
(cherry picked from commit 15157d06c3)
This commit is contained in:
@@ -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)
|
||||
of ctArray:
|
||||
|
||||
Reference in New Issue
Block a user