summaryrefslogtreecommitdiffstats
path: root/dimension/tokenize.c
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 /dimension/tokenize.c
parentb14506e501770aeaf54d1160c0073398cc29a038 (diff)
downloaddimension-6c2943e735c99579b5b861f67f2d98e5ddd6306f.tar.xz
Use C99 for loop initializers.
Diffstat (limited to 'dimension/tokenize.c')
-rw-r--r--dimension/tokenize.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dimension/tokenize.c b/dimension/tokenize.c
index 707d0df..efa1064 100644
--- a/dimension/tokenize.c
+++ b/dimension/tokenize.c
@@ -38,7 +38,7 @@ typedef struct dmnsn_token_buffer {
dmnsn_parse_location lloc;
dmnsn_array *buffered;
- unsigned int i;
+ size_t i;
struct dmnsn_token_buffer *prev;
@@ -67,8 +67,7 @@ dmnsn_delete_token_buffer(void *ptr)
{
dmnsn_token_buffer *tbuffer = ptr;
if (tbuffer) {
- unsigned int i;
- for (i = 0; i < dmnsn_array_size(tbuffer->buffered); ++i) {
+ for (size_t i = 0; i < dmnsn_array_size(tbuffer->buffered); ++i) {
dmnsn_buffered_token buffered;
dmnsn_array_get(tbuffer->buffered, i, &buffered);
free(buffered.lval.value);