diff options
author | Bruno Schmitt <bruno@oschmitt.com> | 2017-02-06 19:50:57 -0800 |
---|---|---|
committer | Bruno Schmitt <bruno@oschmitt.com> | 2017-02-06 19:50:57 -0800 |
commit | 0fb4442a8208ccc36067db034c12a840095c0911 (patch) | |
tree | 7fb02a5678455845c04689976de230cad2d96f1c /src/sat/satoko/utils/vec/vec_char.h | |
parent | cac3967b52ae44fae3962ee9eba456221e0efda3 (diff) | |
download | abc-0fb4442a8208ccc36067db034c12a840095c0911.tar.gz abc-0fb4442a8208ccc36067db034c12a840095c0911.tar.bz2 abc-0fb4442a8208ccc36067db034c12a840095c0911.zip |
Small changes to support old compilers.
Diffstat (limited to 'src/sat/satoko/utils/vec/vec_char.h')
-rw-r--r-- | src/sat/satoko/utils/vec/vec_char.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sat/satoko/utils/vec/vec_char.h b/src/sat/satoko/utils/vec/vec_char.h index fe88797a..7d5732ec 100644 --- a/src/sat/satoko/utils/vec/vec_char.h +++ b/src/sat/satoko/utils/vec/vec_char.h @@ -248,9 +248,10 @@ static inline long vec_char_memory(vec_char_t *p) static inline void vec_char_print(vec_char_t* p) { + unsigned i; assert(p != NULL); fprintf(stdout, "Vector has %u(%u) entries: {", p->size, p->cap); - for (unsigned i = 0; i < p->size; i++) + for (i = 0; i < p->size; i++) fprintf(stdout, " %d", p->data[i]); fprintf(stdout, " }\n"); } |