]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "+= isn't a comparison operator"
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Mar 2024 19:59:57 +0000 (15:59 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Mar 2024 19:59:57 +0000 (15:59 -0400)
This reverts commit 8b5188c1fe179b588ddcab35baad5deb62a9c9e3.

src/lib/util/pair_legacy.c

index 3b6a94c81b6e706029bec2eda3cfde7a94bb9c91..d6669639ee74da92831f2ff63404659117163b7b 100644 (file)
@@ -58,10 +58,9 @@ static fr_sbuff_term_t const         bareword_terminals =
                                );
 
 static fr_table_num_sorted_t const pair_assignment_op_table[] = {
-       { L(":="),      T_OP_EQ                 },
-       { L("+="),      T_OP_ADD_EQ             },
        { L("+="),      T_OP_ADD_EQ             },
-       { L("="),       T_OP_EQ                 }
+       { L(":="),      T_OP_EQ                 },
+       { L("="),       T_OP_EQ                 },
 };
 static ssize_t pair_assignment_op_table_len = NUM_ELEMENTS(pair_assignment_op_table);
 
@@ -70,6 +69,7 @@ static fr_table_num_sorted_t const pair_comparison_op_table[] = {
        { L("!*"),      T_OP_CMP_FALSE          },
        { L("!="),      T_OP_NE                 },
        { L("!~"),      T_OP_REG_NE             },
+       { L("+="),      T_OP_ADD_EQ             },
        { L("<"),       T_OP_LT                 },
        { L("<="),      T_OP_LE                 },
        { L("="),       T_OP_EQ                 },