Skip to content

Commit 28456a1

Browse files
committed
Fixed some misc issues
1 parent 2f32d63 commit 28456a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/geometry/Point.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
#pragma once
1111

12-
template <typename T> int sgn(T x) { return (x>0) - (x<0);}
12+
template <typename T> int sgn(T x) { return (x > 0) - (x < 0);}
1313
template<class T>
1414
struct Point {
1515
typedef Point P;

fuzz-tests/segmentIntersection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ int segmentIntersection(const P& s1, const P& e1,
4444
typedef Point<double> P;
4545
ostream &operator<<(ostream &os, P p) { return cout << "(" << p.x << "," << p.y << ")"; }
4646
bool eq(P a, P b) {
47-
return (a-b).dist()<EPS;
47+
return (a-b).dist()<1e-8;
4848
}
4949
int main() {
5050
rep(t,0,100000) {

0 commit comments

Comments
 (0)