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_lua.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_lua.c')
-rw-r--r-- | src/if_lua.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/if_lua.c b/src/if_lua.c index 4463ac0693..4900534b4c 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -559,11 +559,9 @@ luaV_pushtypval(lua_State *L, typval_T *tv) case VAR_NUMBER: lua_pushinteger(L, (int) tv->vval.v_number); break; -#ifdef FEAT_FLOAT case VAR_FLOAT: lua_pushnumber(L, (lua_Number) tv->vval.v_float); break; -#endif case VAR_LIST: luaV_pushlist(L, tv->vval.v_list); break; @@ -619,7 +617,6 @@ luaV_totypval(lua_State *L, int pos, typval_T *tv) tv->vval.v_string = vim_strsave((char_u *) lua_tostring(L, pos)); break; case LUA_TNUMBER: -#ifdef FEAT_FLOAT { const lua_Number n = lua_tonumber(L, pos); @@ -635,10 +632,6 @@ luaV_totypval(lua_State *L, int pos, typval_T *tv) tv->vval.v_number = (varnumber_T)n; } } -#else - tv->v_type = VAR_NUMBER; - tv->vval.v_number = (varnumber_T) lua_tointeger(L, pos); -#endif break; case LUA_TFUNCTION: { |