Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 628b0c393ea631cf661abb95da95c911c2ae1916 1 parent 79067e4
KIMURA Masaru authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/tree.c
2  src/tree.c
@@ -2058,7 +2058,7 @@ static void rewrite_a(struct tree_array *a, struct rewrite_ctx *ctx)
2058 2058
2059 2059 static void rewrite_p(struct param_array *a, struct rewrite_ctx *ctx)
2060 2060 {
2061   - for (unsigned i = 0; i < a->count; i++) {
  2061 + for (size_t i = 0; i < a->count; i++) {
2062 2062 switch (a->items[i].kind) {
2063 2063 case P_RANGE:
2064 2064 a->items[i].range.left =

0 comments on commit 628b0c3

Please sign in to comment.
Something went wrong with that request. Please try again.