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/tree.c: (in function copy_a)
src/tree.c:2263:16: Operands of < have incompatible types (unsigned int,
                       size_t): i < from->count
src/tree.c: (in function copy_p)
src/tree.c:2275:16: Operands of < have incompatible types (unsigned int,
                       size_t): i < from->count
  • Loading branch information...
commit 08d74d8cd9ab66f7e776aa5243c220ccd0a037de 1 parent 685f9d7
@hiyuh hiyuh authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/tree.c
View
4 src/tree.c
@@ -2225,7 +2225,7 @@ static void copy_a(struct tree_array *from, struct tree_array *to,
to->count = to->max = from->count;
to->items = xmalloc(to->count * sizeof(param_t));
- for (unsigned i = 0; i < from->count; i++)
+ for (size_t i = 0; i < from->count; i++)
to->items[i] = tree_copy_aux(from->items[i], ctx);
}
@@ -2235,7 +2235,7 @@ static void copy_p(struct param_array *from, struct param_array *to,
to->count = to->max = from->count;
to->items = xmalloc(to->count * sizeof(param_t));
- for (unsigned i = 0; i < from->count; i++) {
+ for (size_t i = 0; i < from->count; i++) {
param_t *fp = &from->items[i];
param_t *tp = &to->items[i];
Please sign in to comment.
Something went wrong with that request. Please try again.