Skip to content

Commit b149550

Browse files
committed
fbc: internal change - discard result in rtlStrAssign()
1 parent 5b95f86 commit b149550

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compiler/rtl-string.bas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2554,7 +2554,10 @@ function rtlStrAssign _
25542554
exit function
25552555
end if
25562556

2557-
''
2557+
'' always discard result, even though actual rtlib returns a ptr to destination
2558+
'' it will never be used anywhere
2559+
astSetType( proc, FB_DATATYPE_VOID, NULL )
2560+
25582561
function = proc
25592562

25602563
end function

0 commit comments

Comments
 (0)