aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-01-31 13:25:16 -0500
committerGitHub <noreply@github.com>2021-01-31 13:25:16 -0500
commite85c8dff692c894a614192f6dd8a4c71c1c9fe30 (patch)
tree077b5c54b39b538c09b44a419044648cc36fdce9 /src/nvim/lua
parentb2713f11b48fe8029aeae07ef6a55ef182a4fbfd (diff)
parent81794204ce85dd15a62a27275fe717c7033e65d5 (diff)
downloadrneovim-e85c8dff692c894a614192f6dd8a4c71c1c9fe30.tar.gz
rneovim-e85c8dff692c894a614192f6dd8a4c71c1c9fe30.tar.bz2
rneovim-e85c8dff692c894a614192f6dd8a4c71c1c9fe30.zip
Merge pull request #12937 from jamessan/term-env
Diffstat (limited to 'src/nvim/lua')
-rw-r--r--src/nvim/lua/converter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/lua/converter.c b/src/nvim/lua/converter.c
index 030df69caa..83b3729ad3 100644
--- a/src/nvim/lua/converter.c
+++ b/src/nvim/lua/converter.c
@@ -245,7 +245,7 @@ bool nlua_pop_typval(lua_State *lstate, typval_T *ret_tv)
} else {
dictitem_T *const di = tv_dict_item_alloc_len(s, len);
if (tv_dict_add(cur.tv->vval.v_dict, di) == FAIL) {
- assert(false);
+ abort();
}
kv_push(stack, cur);
cur = (TVPopStackItem) { &di->di_tv, false, false, 0 };
@@ -391,7 +391,7 @@ bool nlua_pop_typval(lua_State *lstate, typval_T *ret_tv)
break;
}
default: {
- assert(false);
+ abort();
}
}
nlua_pop_typval_table_processing_end:
@@ -1200,7 +1200,7 @@ Object nlua_pop_Object(lua_State *const lstate, bool ref, Error *const err)
break;
}
default: {
- assert(false);
+ abort();
}
}
break;