Permalink
Browse files

Fix following splint warning.

src/tree.c: (in function rewrite_p)
src/tree.c:2092:16: Operands of < have incompatible types (unsigned int,
                       size_t): i < a->count
  • Loading branch information...
1 parent 79067e4 commit 628b0c393ea631cf661abb95da95c911c2ae1916 @hiyuh committed May 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tree.c
View
2 src/tree.c
@@ -2058,7 +2058,7 @@ static void rewrite_a(struct tree_array *a, struct rewrite_ctx *ctx)
static void rewrite_p(struct param_array *a, struct rewrite_ctx *ctx)
{
- for (unsigned i = 0; i < a->count; i++) {
+ for (size_t i = 0; i < a->count; i++) {
switch (a->items[i].kind) {
case P_RANGE:
a->items[i].range.left =

0 comments on commit 628b0c3

Please sign in to comment.