diff options
author | James McCoy <jamessan@jamessan.com> | 2021-01-31 13:25:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 13:25:16 -0500 |
commit | e85c8dff692c894a614192f6dd8a4c71c1c9fe30 (patch) | |
tree | 077b5c54b39b538c09b44a419044648cc36fdce9 /src/nvim/charset.c | |
parent | b2713f11b48fe8029aeae07ef6a55ef182a4fbfd (diff) | |
parent | 81794204ce85dd15a62a27275fe717c7033e65d5 (diff) | |
download | rneovim-e85c8dff692c894a614192f6dd8a4c71c1c9fe30.tar.gz rneovim-e85c8dff692c894a614192f6dd8a4c71c1c9fe30.tar.bz2 rneovim-e85c8dff692c894a614192f6dd8a4c71c1c9fe30.zip |
Merge pull request #12937 from jamessan/term-env
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 3e52b3e3ce..be265e3f27 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -1747,7 +1747,7 @@ void vim_str2nr(const char_u *const start, int *const prep, int *const len, goto vim_str2nr_dec; } default: { - assert(false); + abort(); } } } else if ((what & (STR2NR_HEX|STR2NR_OCT|STR2NR_BIN)) @@ -1788,7 +1788,7 @@ void vim_str2nr(const char_u *const start, int *const prep, int *const len, } // Do the string-to-numeric conversion "manually" to avoid sscanf quirks. - assert(false); // Should’ve used goto earlier. + abort(); // Should’ve used goto earlier. #define PARSE_NUMBER(base, cond, conv) \ do { \ while (!STRING_ENDED(ptr) && (cond)) { \ |