summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgen.c b/cgen.c
index 4be5032..d1ebab7 100644
--- a/cgen.c
+++ b/cgen.c
@@ -186,7 +186,7 @@ static inline void *cgen_malloc(CGenerator *g, size_t sz) {
/* indent iff needed */
static inline void cgen_indent(CGenerator *g) {
if (g->will_indent) {
- for (int i = 0; i < g->indent_lvl; ++i)
+ for (unsigned i = 0; i < g->indent_lvl; ++i)
fprintf(cgen_writing_to(g), "\t");
g->will_indent = false;
}