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 /dimension/common.rules | |
parent | b14506e501770aeaf54d1160c0073398cc29a038 (diff) | |
download | dimension-6c2943e735c99579b5b861f67f2d98e5ddd6306f.tar.xz |
Use C99 for loop initializers.
Diffstat (limited to 'dimension/common.rules')
-rw-r--r-- | dimension/common.rules | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dimension/common.rules b/dimension/common.rules index 9a72b44..4644627 100644 --- a/dimension/common.rules +++ b/dimension/common.rules @@ -152,8 +152,7 @@ OBJECT: FINITE_SOLID_OBJECT *modifiers = dmnsn_new_astnode(DMNSN_AST_OBJECT_MODIFIERS, @4); dmnsn_copy_children(*modifiers, orig_modifiers); - unsigned int i; - for (i = 0; i < dmnsn_array_size($4.children); ++i) { + for (size_t i = 0; i < dmnsn_array_size($4.children); ++i) { dmnsn_astnode astnode; dmnsn_array_get($4.children, i, &astnode); ++*astnode.refcount; @@ -186,8 +185,7 @@ OBJECT: FINITE_SOLID_OBJECT dmnsn_array_size($$.children) - 1, &modifiers); - unsigned int i; - for (i = 0; i < dmnsn_array_size($4.children); ++i) { + for (size_t i = 0; i < dmnsn_array_size($4.children); ++i) { dmnsn_astnode astnode; dmnsn_array_get($4.children, i, &astnode); ++*astnode.refcount; |