소스 검색

r17580@catbus: nickm | 2008-01-11 20:40:30 -0500
Fix policies.c build on gcc 4.2 with warnings.


svn:r13112

Nick Mathewson 16 년 전
부모
커밋
705b4670d3
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/or/policies.c

+ 2 - 1
src/or/policies.c

@@ -651,7 +651,8 @@ exit_policy_remove_redundancies(smartlist_t *dest)
   for (i = 0; i < smartlist_len(dest)-1; ++i) {
     ap = smartlist_get(dest, i);
     for (j = i+1; j < smartlist_len(dest); ++j) {
-      tor_assert(j > i);
+      // tor_assert(j > i); // j starts out at i+1; j only increases; i only
+      //                    // decreases.
       tmp = smartlist_get(dest, j);
       if (ap->policy_type != tmp->policy_type) {
         if (addr_policy_intersects(ap, tmp))