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:
parent
3d7eaa7da6
commit
1a57866c06
|
@ -231,7 +231,7 @@ int StdioBasePrintf(struct ParseState *Parser, FILE *Stream, char *StrOut, int S
|
||||||
case 'n':
|
case 'n':
|
||||||
ThisArg = (struct Value *)((char *)ThisArg + MEM_ALIGN(sizeof(struct Value) + TypeStackSizeValue(ThisArg)));
|
ThisArg = (struct Value *)((char *)ThisArg + MEM_ALIGN(sizeof(struct Value) + TypeStackSizeValue(ThisArg)));
|
||||||
if (ThisArg->Typ->Base == TypeArray && ThisArg->Typ->FromType->Base == TypeInt)
|
if (ThisArg->Typ->Base == TypeArray && ThisArg->Typ->FromType->Base == TypeInt)
|
||||||
*(int *)ThisArg->Val->Integer = SOStream.CharCount;
|
*(int *)ThisArg->Val->Pointer = SOStream.CharCount;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue