Mercurial > vim
diff src/regexp_nfa.c @ 4958:0a379dea13c9 v7.3.1224
updated for version 7.3.1224
Problem: Clang gives warnings on xxd.
Solution: Change how to use part of a string. (Dominique Pelle) Also avoid
warning for return not reached.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 21 Jun 2013 18:31:23 +0200 |
parents | 613651492c19 |
children | 8a7d3a73adab |
line wrap: on
line diff
--- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -2611,7 +2611,7 @@ nfa_max_width(startstate, depth) if (depth > 4) return -1; - for (;;) + while (state != NULL) { switch (state->c) { @@ -2810,7 +2810,7 @@ nfa_max_width(startstate, depth) state = state->out; } - /* unrecognized */ + /* unrecognized, "cannot happen" */ return -1; }