summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-05-05 20:09:38 -0600
committerTavian Barnes <tavianator@gmail.com>2010-05-05 22:47:44 -0600
commit6c2943e735c99579b5b861f67f2d98e5ddd6306f (patch)
treee882a1dda2726dd9dfca3fe2dd44750b17b1edda /tests
parentb14506e501770aeaf54d1160c0073398cc29a038 (diff)
downloaddimension-6c2943e735c99579b5b861f67f2d98e5ddd6306f.tar.xz
Use C99 for loop initializers.
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/prtree.c3
1 files changed, 1 insertions, 2 deletions
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;