use while instead of for
This commit is contained in:
parent
190986fb31
commit
a7a3621cfe
1 changed files with 5 additions and 3 deletions
|
@ -281,10 +281,12 @@ node * r3_tree_matchl(const node * n, const char * path, int path_len, match_ent
|
||||||
unsigned short restlen;
|
unsigned short restlen;
|
||||||
|
|
||||||
if (n->compare_type == NODE_COMPARE_OPCODE) {
|
if (n->compare_type == NODE_COMPARE_OPCODE) {
|
||||||
char *pp;
|
const char *pp;
|
||||||
const char *pp_end = path + path_len;
|
const char *pp_end = path + path_len;
|
||||||
for (i = 0; i < n->edge_len ; i++ ) {
|
|
||||||
pp = (char*) path;
|
i = n->edge_len;
|
||||||
|
while(i--) {
|
||||||
|
pp = path;
|
||||||
e = n->edges[i];
|
e = n->edges[i];
|
||||||
switch(e->opcode) {
|
switch(e->opcode) {
|
||||||
case OP_EXPECT_NOSLASH:
|
case OP_EXPECT_NOSLASH:
|
||||||
|
|
Loading…
Reference in a new issue