From 29f48a2921e893d9aaa0ec9c52c46910113e67d4 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Mon, 24 Jan 2011 02:20:48 +0000 Subject: [PATCH] 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 --- cstdlib/math.c | 2 +- tests/03_struct.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cstdlib/math.c b/cstdlib/math.c index ee379a6..f7d9c1e 100644 --- a/cstdlib/math.c +++ b/cstdlib/math.c @@ -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) { /* 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); } diff --git a/tests/03_struct.c b/tests/03_struct.c index 76fe7a8..079622d 100644 --- a/tests/03_struct.c +++ b/tests/03_struct.c @@ -14,4 +14,8 @@ bloggs.natasha = 34; printf("%d\n", bloggs.boris); printf("%d\n", bloggs.natasha); +//struct fred jones[2]; +//jones[0].boris = 12; +//jones[0].natasha = 34; + void main() {}