Sat, 30 May 2015 14:14:36 +0200
fixed: comparison operator info has been incorrectly written to type field
libidav/davqlparser.c | file | annotate | diff | comparison | revisions |
--- a/libidav/davqlparser.c Sat May 30 13:49:17 2015 +0200 +++ b/libidav/davqlparser.c Sat May 30 14:14:36 2015 +0200 @@ -1107,19 +1107,19 @@ } else { if (tokenvalue_is(token, "=")) { if (tokenvalue_is(optok, "!")) { - expr->type = DAVQL_NEQ; + expr->op = DAVQL_NEQ; } else if (tokenvalue_is(optok, "<")) { - expr->type = DAVQL_LE; + expr->op = DAVQL_LE; } else if (tokenvalue_is(optok, ">")) { - expr->type = DAVQL_GE; + expr->op = DAVQL_GE; } total_consumed++; token = token->next; } else { if (tokenvalue_is(optok, "<")) { - expr->type = DAVQL_LT; + expr->op = DAVQL_LT; } else if (tokenvalue_is(optok, ">")) { - expr->type = DAVQL_GT; + expr->op = DAVQL_GT; } } }