diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-17 21:08:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-17 21:08:33 +0100 |
commit | 73e28dcc6125f616cf1f2d56443d22428a79e434 (patch) | |
tree | bc26b3d1bb2e1675b7dae14b6c9cda1cd42c90d6 /src/if_ruby.c | |
parent | 1c3dd8ddcba63c1af5112e567215b3cec2de11d0 (diff) |
patch 9.0.0491: no good reason to build without the float featurev9.0.0491
Problem: No good reason to build without the float feature.
Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index 3a92fa8cf9..7632cbf054 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -1221,12 +1221,10 @@ vim_to_ruby(typval_T *tv) { result = INT2NUM(tv->vval.v_number); } -# ifdef FEAT_FLOAT else if (tv->v_type == VAR_FLOAT) { result = rb_float_new(tv->vval.v_float); } -# endif else if (tv->v_type == VAR_LIST) { list_T *list = tv->vval.v_list; @@ -1932,12 +1930,10 @@ ruby_convert_to_vim_value(VALUE val, typval_T *rettv) rettv->v_type = VAR_NUMBER; rettv->vval.v_number = (varnumber_T)NUM2LONG(val); break; -#ifdef FEAT_FLOAT case T_FLOAT: rettv->v_type = VAR_FLOAT; rettv->vval.v_float = (float_T)NUM2DBL(val); break; -#endif default: val = rb_obj_as_string(val); // FALLTHROUGH |