Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2459 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user