Merge pull request #17594 from ivodopiviz/float-overflow

Changed debug max distance to avoid overflow
This commit is contained in:
Juan Linietsky 2018-04-08 09:14:29 -03:00 committed by GitHub
commit 10448063c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,8 @@
#include "shape_sw.h"
#ifdef DEBUG_ENABLED
#define MAX_OBJECT_DISTANCE 10000000.0
#define MAX_OBJECT_DISTANCE 3.1622776601683791e+18
#define MAX_OBJECT_DISTANCE_X2 (MAX_OBJECT_DISTANCE * MAX_OBJECT_DISTANCE)
#endif