@@ -187,14 +187,16 @@ S1Angle GetDistance(const S2Point& x, const S2Point& a, const S2Point& b) {
187
187
}
188
188
189
189
// 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]
191
191
int UpdateMinDistance (const S2Point& x, const S2Point& a, const S2Point& b,
192
192
S1ChordAngle* min_dist) {
193
193
return AlwaysUpdateMinDistance<false >(x, a, b, min_dist);
194
194
}
195
195
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) {
198
200
auto dist = max (S1ChordAngle (x, a), S1ChordAngle (x, b));
199
201
if (dist > S1ChordAngle::Right ()) {
200
202
AlwaysUpdateMinDistance<true >(-x, a, b, &dist);
@@ -264,7 +266,9 @@ S2Point Project(const S2Point& x, const S2Point& a, const S2Point& b) {
264
266
return Project (x, a, b, S2::RobustCrossProd (a, b));
265
267
}
266
268
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 (
268
272
const S2Point& a0, const S2Point& a1,
269
273
const S2Point& b0, const S2Point& b1,
270
274
S1ChordAngle* min_dist) {
@@ -287,7 +291,9 @@ bool UpdateEdgePairMinDistance(
287
291
UpdateMinDistance (b1, a0, a1, min_dist));
288
292
}
289
293
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 (
291
297
const S2Point& a0, const S2Point& a1,
292
298
const S2Point& b0, const S2Point& b1,
293
299
S1ChordAngle* max_dist) {
0 commit comments