diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-28 11:04:15 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-28 11:04:15 +0900 |
| commit | 514cafe6c3fe548c215f83c84fafa6d3019b0bf4 (patch) | |
| tree | 9517bd955931a2a66a163753f010606222d1d193 /src/numeric.c | |
| parent | b8e434a5e6ed2884e70a77c28430fb8bc1d372dc (diff) | |
| download | mruby-514cafe6c3fe548c215f83c84fafa6d3019b0bf4.tar.gz mruby-514cafe6c3fe548c215f83c84fafa6d3019b0bf4.zip | |
do not use "to_f" to retrieve floats in mrb_get_args(); close #1965
Diffstat (limited to 'src/numeric.c')
| -rw-r--r-- | src/numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c index b2507fb0b..c3209bc6f 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -27,7 +27,7 @@ #define FLO_EPSILON DBL_EPSILON #endif -static mrb_float +mrb_float mrb_to_flo(mrb_state *mrb, mrb_value val) { switch (mrb_type(val)) { |
