Fixed int->char coercion error in parameter passing.

git-svn-id: http://picoc.googlecode.com/svn/trunk@265 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-04-23 11:57:45 +00:00
parent 99656dc9fb
commit d06f2442fb

View file

@ -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