mirror of
https://github.com/cc65/cc65.git
synced 2024-09-06 02:54:33 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2459 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
ed6a2f5c86
commit
d4bd299b5c
@ -275,7 +275,7 @@ static void ReturnStatement (void)
|
|||||||
if (!F_HasVoidReturn (CurrentFunc)) {
|
if (!F_HasVoidReturn (CurrentFunc)) {
|
||||||
|
|
||||||
/* Convert the return value to the type of the function result */
|
/* Convert the return value to the type of the function result */
|
||||||
TypeConversion (&Expr, k, F_GetReturnType (CurrentFunc));
|
k = TypeConversion (&Expr, k, F_GetReturnType (CurrentFunc));
|
||||||
|
|
||||||
/* Load the value into the primary */
|
/* Load the value into the primary */
|
||||||
ExprLoad (CF_NONE, k, &Expr);
|
ExprLoad (CF_NONE, k, &Expr);
|
||||||
|
Loading…
Reference in New Issue
Block a user