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.prologue | |
parent | b14506e501770aeaf54d1160c0073398cc29a038 (diff) | |
download | dimension-6c2943e735c99579b5b861f67f2d98e5ddd6306f.tar.xz |
Use C99 for loop initializers.
Diffstat (limited to 'dimension/common.prologue')
-rw-r--r-- | dimension/common.prologue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dimension/common.prologue b/dimension/common.prologue index 4fdfcee..8bbeaea 100644 --- a/dimension/common.prologue +++ b/dimension/common.prologue @@ -65,8 +65,7 @@ dmnsn_new_astnode(dmnsn_astnode_type type, YYLTYPE lloc) static void dmnsn_copy_children(dmnsn_astnode dest, dmnsn_astnode src) { - unsigned int i; - for (i = 0; i < dmnsn_array_size(src.children); ++i) { + for (size_t i = 0; i < dmnsn_array_size(src.children); ++i) { dmnsn_astnode node; dmnsn_array_get(src.children, i, &node); ++*node.refcount; |