diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-05-05 20:09:38 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-05-05 22:47:44 -0600 |
commit | 6c2943e735c99579b5b861f67f2d98e5ddd6306f (patch) | |
tree | e882a1dda2726dd9dfca3fe2dd44750b17b1edda /libdimension/scene.c | |
parent | b14506e501770aeaf54d1160c0073398cc29a038 (diff) | |
download | dimension-6c2943e735c99579b5b861f67f2d98e5ddd6306f.tar.xz |
Use C99 for loop initializers.
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r-- | libdimension/scene.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c index 48ca702..177e7fe 100644 --- a/libdimension/scene.c +++ b/libdimension/scene.c @@ -50,16 +50,15 @@ void dmnsn_delete_scene(dmnsn_scene *scene) { if (scene) { - unsigned int i; dmnsn_light *light; dmnsn_object *object; - for (i = 0; i < dmnsn_array_size(scene->lights); ++i) { + for (size_t i = 0; i < dmnsn_array_size(scene->lights); ++i) { dmnsn_array_get(scene->lights, i, &light); dmnsn_delete_light(light); } - for (i = 0; i < dmnsn_array_size(scene->objects); ++i) { + for (size_t i = 0; i < dmnsn_array_size(scene->objects); ++i) { dmnsn_array_get(scene->objects, i, &object); dmnsn_delete_object(object); } |