Fixed Range.size to use proper floating point tolerance

This commit is contained in:
Tomasz Dąbrowski
2016-11-24 12:50:49 +01:00
parent a8b8abbd82
commit 72ed7eebc3
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -64,6 +64,13 @@
#endif
#include "mrbconf.h"
#ifdef MRB_USE_FLOAT
#define MRB_FLOAT_EPSILON FLT_EPSILON
#else
#define MRB_FLOAT_EPSILON DBL_EPSILON
#endif
#include "mruby/common.h"
#include <mruby/value.h>
#include <mruby/gc.h>