Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ae4ed575a7c36c874aae3e566c0ed6fd818f62d2 1 parent e4ccf6b
@hiyuh hiyuh authored committed
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);
Please sign in to comment.
Something went wrong with that request. Please try again.