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:
parent
99656dc9fb
commit
d06f2442fb
|
@ -903,7 +903,7 @@ void ExpressionParseFunctionCall(struct ParseState *Parser, struct ExpressionSta
|
||||||
else if (FuncValue->Val->FuncDef.ParamType[ArgCount] == &CharType && Param->Typ == &IntType)
|
else if (FuncValue->Val->FuncDef.ParamType[ArgCount] == &CharType && Param->Typ == &IntType)
|
||||||
{
|
{
|
||||||
/* cast int to char */
|
/* cast int to char */
|
||||||
Param->Val->Integer = Param->Val->Character;
|
Param->Val->Character = Param->Val->Integer;
|
||||||
Param->Typ = &CharType;
|
Param->Typ = &CharType;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue