Added a tentative test for bug #108.
Fixed a comment problem (standard compliance). git-svn-id: http://picoc.googlecode.com/svn/trunk@489 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
543964f6f9
commit
29f48a2921
|
@ -121,7 +121,7 @@ void MathSqrt(struct ParseState *Parser, struct Value *ReturnValue, struct Value
|
||||||
void MathRound(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
|
void MathRound(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs)
|
||||||
{
|
{
|
||||||
/* this awkward definition of "round()" due to it being inconsistently
|
/* this awkward definition of "round()" due to it being inconsistently
|
||||||
/* declared in math.h */
|
* declared in math.h */
|
||||||
ReturnValue->Val->FP = ceil(Param[0]->Val->FP - 0.5);
|
ReturnValue->Val->FP = ceil(Param[0]->Val->FP - 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,8 @@ bloggs.natasha = 34;
|
||||||
printf("%d\n", bloggs.boris);
|
printf("%d\n", bloggs.boris);
|
||||||
printf("%d\n", bloggs.natasha);
|
printf("%d\n", bloggs.natasha);
|
||||||
|
|
||||||
|
//struct fred jones[2];
|
||||||
|
//jones[0].boris = 12;
|
||||||
|
//jones[0].natasha = 34;
|
||||||
|
|
||||||
void main() {}
|
void main() {}
|
||||||
|
|
Loading…
Reference in a new issue