Skip to content

Commit ee319fe

Browse files
authored
Update minimum-area-rectangle-ii.cpp
1 parent 9cc3899 commit ee319fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/minimum-area-rectangle-ii.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Solution {
3434
auto y1 = kvp.first.second;
3535
auto x2 = kvp.second[i].first - kvp.second[j].first;
3636
auto y2 = kvp.second[i].second - kvp.second[j].second;
37-
if (x1 * x2 + y1 * y2 == 0) {
37+
if (x1 * x2 + y1 * y2 == 0.0) {
3838
result = min(result, sqrt((x1 * x1 + y1 * y1) *
3939
(x2 * x2 + y2 * y2)));
4040
}

0 commit comments

Comments
 (0)