Skip to content

Commit d015078

Browse files
committed
Fix hFlushExprStatic() to use full type again (regression from 616dc23)
I can't think of a test case for this though, CONSTness should have been checked before already, it shouldn't matter here when emitting. Also the full type is only used for an astNewCONV() which allows casting away CONSTness etc. anyways.
1 parent 616dc23 commit d015078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/ast-node-typeini.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ private sub hFlushExprStatic( byval n as ASTNODE ptr, byval basesym as FBSYMBOL
524524
end if
525525

526526
var sdtype = symbGetType( sym )
527-
var sfulldtype = symbGetType( sym )
527+
var sfulldtype = symbGetFullType( sym )
528528
if( symbIsRef( sym ) ) then
529529
'' Initializers for references initialize the pointer,
530530
'' not an object of the symbol's type.

0 commit comments

Comments
 (0)