[Fix] Fix the compilation error on windows (#1657)

This commit is contained in:
Zaida Zhou 2022-01-11 12:55:07 +08:00 committed by GitHub
parent b5ec327d34
commit ccdc61c087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@
#define MAXN 100
#define NMAX 512
const double EPS = 1E-8;
__device__ const double EPS = 1E-8;
__device__ inline int sig(double d) { return (d > EPS) - (d < -EPS); }

View File

@ -9,8 +9,7 @@
#endif
#define MAXN 20
const float EPS = 1E-8;
const float PI = 3.1415926;
__device__ const float PI = 3.1415926;
struct Point {
float x, y;