@@ -187,14 +187,16 @@ S1Angle GetDistance(const S2Point& x, const S2Point& a, const S2Point& b) {
187187}
188188
189189// dd: changed return type to int because on new clang we get:
190- // s2/s2edge_distances.cc:282:11: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
190+ // warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
191191int UpdateMinDistance (const S2Point& x, const S2Point& a, const S2Point& b,
192192 S1ChordAngle* min_dist) {
193193 return AlwaysUpdateMinDistance<false >(x, a, b, min_dist);
194194}
195195
196- bool UpdateMaxDistance (const S2Point& x, const S2Point& a, const S2Point& b,
197- S1ChordAngle* max_dist) {
196+ // dd: changed return type to int because on new clang we get:
197+ // warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
198+ int UpdateMaxDistance (const S2Point& x, const S2Point& a, const S2Point& b,
199+ S1ChordAngle* max_dist) {
198200 auto dist = max (S1ChordAngle (x, a), S1ChordAngle (x, b));
199201 if (dist > S1ChordAngle::Right ()) {
200202 AlwaysUpdateMinDistance<true >(-x, a, b, &dist);
@@ -264,7 +266,9 @@ S2Point Project(const S2Point& x, const S2Point& a, const S2Point& b) {
264266 return Project (x, a, b, S2::RobustCrossProd (a, b));
265267}
266268
267- bool UpdateEdgePairMinDistance (
269+ // dd: changed return type to int because on new clang we get:
270+ // warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
271+ int UpdateEdgePairMinDistance (
268272 const S2Point& a0, const S2Point& a1,
269273 const S2Point& b0, const S2Point& b1,
270274 S1ChordAngle* min_dist) {
@@ -287,7 +291,9 @@ bool UpdateEdgePairMinDistance(
287291 UpdateMinDistance (b1, a0, a1, min_dist));
288292}
289293
290- bool UpdateEdgePairMaxDistance (
294+ // dd: changed return type to int because on new clang we get:
295+ // warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
296+ int UpdateEdgePairMaxDistance (
291297 const S2Point& a0, const S2Point& a1,
292298 const S2Point& b0, const S2Point& b1,
293299 S1ChordAngle* max_dist) {
0 commit comments