mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
refactor: format casting of negative number better (#26482)
This commit is contained in:
@@ -1254,7 +1254,7 @@ handle_T nlua_pop_handle(lua_State *lstate, Error *err)
|
||||
handle_T ret;
|
||||
if (lua_type(lstate, -1) != LUA_TNUMBER) {
|
||||
api_set_error(err, kErrorTypeValidation, "Expected Lua number");
|
||||
ret = (handle_T) - 1;
|
||||
ret = (handle_T)(-1);
|
||||
} else {
|
||||
ret = (handle_T)lua_tonumber(lstate, -1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user