Skip to content

Commit a9b5901

Browse files
committed
clang-tidy likes parentheses
1 parent 1e705db commit a9b5901

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/osmium/area/detail/vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ namespace osmium {
8484

8585
// cross product
8686
constexpr int64_t operator*(const vec& lhs, const vec& rhs) noexcept {
87-
return lhs.x * rhs.y - lhs.y * rhs.x;
87+
return (lhs.x * rhs.y) - (lhs.y * rhs.x);
8888
}
8989

9090
// scale vector

0 commit comments

Comments
 (0)