From d06f2442fbce7fbdb08e14a4669dc7b53ccaf67a Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Thu, 23 Apr 2009 11:57:45 +0000 Subject: [PATCH] Fixed int->char coercion error in parameter passing. git-svn-id: http://picoc.googlecode.com/svn/trunk@265 21eae674-98b7-11dd-bd71-f92a316d2d60 --- expression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expression.c b/expression.c index 0af5853..0eb582b 100644 --- a/expression.c +++ b/expression.c @@ -903,7 +903,7 @@ void ExpressionParseFunctionCall(struct ParseState *Parser, struct ExpressionSta else if (FuncValue->Val->FuncDef.ParamType[ArgCount] == &CharType && Param->Typ == &IntType) { /* cast int to char */ - Param->Val->Integer = Param->Val->Character; + Param->Val->Character = Param->Val->Integer; Param->Typ = &CharType; } else