mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fixed Range.size to use proper floating point tolerance
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user