Skip to content

Commit

Permalink
Merge pull request #283 from lrineau/Arrangement-fix_warning_enumeral…
Browse files Browse the repository at this point in the history
…_conditional_mismatch-GF

Fix a warning in Arr_2 (version CGAL-4.6)
  • Loading branch information
lrineau committed Aug 23, 2015
2 parents 133bc0d + 2cdbe63 commit 8a07318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Arrangement_on_surface_2/include/CGAL/Arr_polyline_traits_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ namespace CGAL {
*oi++ = make_object(p);
return oi;
}
dir1 == SMALLER ? ++i1 : (i1 != 0) ? --i1 : INVALID_INDEX;
dir1 == SMALLER ? ++i1 : (i1 != 0) ? --i1 : std::size_t(INVALID_INDEX);
left_res = EQUAL;
}
}
Expand All @@ -1615,7 +1615,7 @@ namespace CGAL {
return oi;
}

dir2 == SMALLER ? ++i2 : (i2 != 0) ? --i2 : INVALID_INDEX;
dir2 == SMALLER ? ++i2 : (i2 != 0) ? --i2 : std::size_t(INVALID_INDEX);
left_res = EQUAL;
}
}
Expand Down Expand Up @@ -2772,7 +2772,7 @@ namespace CGAL {
// segment that is closest to the point. Otherwise, the point is not
// in the x-range of the polyline.
return (is_vertical_2_object()(cv)) ?
((res_to == SMALLER) ? from : to) : INVALID_INDEX;
((res_to == SMALLER) ? from : to) : std::size_t(INVALID_INDEX);

// Perform a binary search to locate the segment that contains q in its
// range:
Expand Down

0 comments on commit 8a07318

Please sign in to comment.