From: cuz Date: Tue, 30 Sep 2003 14:40:32 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~1312 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d4bd299b5c6ec80978dec5c0c831d77e053cf99f;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@2459 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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);