From d4bd299b5c6ec80978dec5c0c831d77e053cf99f Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 30 Sep 2003 14:40:32 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2459 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/stmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/stmt.c b/src/cc65/stmt.c index ba20981f7..77b39859d 100644 --- a/src/cc65/stmt.c +++ b/src/cc65/stmt.c @@ -275,7 +275,7 @@ static void ReturnStatement (void) if (!F_HasVoidReturn (CurrentFunc)) { /* 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 */ ExprLoad (CF_NONE, k, &Expr);