From 76dc44d2a69293b08d4369dedf5d735e3dc29803 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 12 Jan 2016 21:07:45 -0700 Subject: fix build with gcc closes #66 --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index cd6d43d661..7fcb58cf50 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -2402,7 +2402,7 @@ static void define_builtin_fns_int(CodeGen *g, TypeTableEntry *type_entry) { {"sub", "ssub", "usub"}, {"mul", "smul", "umul"}, }; - for (int i = 0; i < sizeof(overflow_fns)/sizeof(overflow_fns[0]); i += 1) { + for (size_t i = 0; i < sizeof(overflow_fns)/sizeof(overflow_fns[0]); i += 1) { OverflowFn *overflow_fn = &overflow_fns[i]; BuiltinFnEntry *builtin_fn = allocate(1); buf_resize(&builtin_fn->name, 0); -- cgit v1.2.3