X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fstmt.c;h=77b39859d1775972f743138e40e48946c9c9f4b1;hb=b3496bb343a2c93284a8669da4b52cf45b3db3dd;hp=ba20981f74a94e7f63970f1474d773e5fc74ed98;hpb=14fc5c10734066a48ba02a5225efb12685ad7291;p=cc65 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);