From 6c2943e735c99579b5b861f67f2d98e5ddd6306f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 5 May 2010 20:09:38 -0600 Subject: Use C99 for loop initializers. --- tests/libdimension/prtree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/libdimension') diff --git a/tests/libdimension/prtree.c b/tests/libdimension/prtree.c index b3e5d52..0684d55 100644 --- a/tests/libdimension/prtree.c +++ b/tests/libdimension/prtree.c @@ -59,8 +59,7 @@ main() const size_t nobjects = 128; dmnsn_scene *scene = dmnsn_new_scene(); - size_t i; - for (i = 0; i < nobjects; ++i) { + for (size_t i = 0; i < nobjects; ++i) { dmnsn_object *object = dmnsn_new_object(); dmnsn_randomize_bounding_box(object); object->intersection_fn = &dmnsn_fake_intersection_fn; -- cgit v1.2.3