1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Fix i_same for 'c' instruction.

This commit is contained in:
Pavel Machek
2000-06-08 16:57:41 +00:00
parent 89e7de98e4
commit 4bb18dd2da
2 changed files with 35 additions and 11 deletions

View File

@@ -748,7 +748,21 @@ i_same(struct f_inst *f1, struct f_inst *f2)
}
break;
case 'c': A2_SAME; break;
case 'c':
if (f1->aux & T_SET) {
if (!same_tree(f1->a2.p, f2->a2.p))
return 0;
break;
}
switch (f1->aux) {
case T_STRING:
if (strcmp(f1->a2.p, f2->a2.p))
return 0;
break;
default:
A2_SAME;
}
break;
case 'C':
if (val_compare(* (struct f_val *) f1->a1.p, * (struct f_val *) f2->a1.p))
return 0;