Permalink
Browse files

Fix following splint warning.

src/cgen.c: (in function llvm_type)
src/cgen.c:223:59: Function LLVMArrayType expects arg 2 to be unsigned
int gets
                      int: nelems
  • Loading branch information...
1 parent e4ccf6b commit ae4ed575a7c36c874aae3e566c0ed6fd818f62d2 @hiyuh hiyuh committed with May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cgen.c
View
2 src/cgen.c
@@ -209,7 +209,7 @@ static LLVMTypeRef llvm_type(type_t t)
case T_UARRAY:
{
if (cgen_const_bounds(t)) {
- int nelems = 1;
+ unsigned nelems = 1;
for (unsigned i = 0; i < type_dims(t); i++) {
int64_t low, high;
range_bounds(type_dim(t, i), &low, &high);

0 comments on commit ae4ed57

Please sign in to comment.