Fixed an obscure bug in an obscure printf() option that neither I nor anyone else cares about.

git-svn-id: http://picoc.googlecode.com/svn/trunk@561 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2011-02-21 05:08:28 +00:00
parent 3d7eaa7da6
commit 1a57866c06

View file

@ -231,7 +231,7 @@ int StdioBasePrintf(struct ParseState *Parser, FILE *Stream, char *StrOut, int S
case 'n':
ThisArg = (struct Value *)((char *)ThisArg + MEM_ALIGN(sizeof(struct Value) + TypeStackSizeValue(ThisArg)));
if (ThisArg->Typ->Base == TypeArray && ThisArg->Typ->FromType->Base == TypeInt)
*(int *)ThisArg->Val->Integer = SOStream.CharCount;
*(int *)ThisArg->Val->Pointer = SOStream.CharCount;
break;
}
}