aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-03 17:28:57 +0300
committerZyX <kp-pav@yandex.ru>2017-01-03 17:28:57 +0300
commitefc624c2fe029a4ab494672c43366e8c57c19108 (patch)
treed3e79b9621a7918efffabebc597c14016cbe0102 /src/nvim/eval.c
parentf21725946c575884e04e79942850e7d0bc040ef9 (diff)
downloadrneovim-efc624c2fe029a4ab494672c43366e8c57c19108.tar.gz
rneovim-efc624c2fe029a4ab494672c43366e8c57c19108.tar.bz2
rneovim-efc624c2fe029a4ab494672c43366e8c57c19108.zip
eval: Fix errorneous early exit when converting lists and dictionaries
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index d1ae94706f..a0f511ab23 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -19151,7 +19151,7 @@ static inline int _nothing_conv_list_start(typval_T *const tv)
#define TYPVAL_ENCODE_CONV_LIST_START(tv, len) \
do { \
if (_nothing_conv_list_start(tv) != NOTDONE) { \
- return OK; \
+ goto typval_encode_stop_converting_one_item; \
} \
} while (0)
@@ -19190,7 +19190,7 @@ static inline int _nothing_conv_dict_start(typval_T *const tv,
if (_nothing_conv_dict_start(tv, (dict_T **)&dict, \
(void *)&TYPVAL_ENCODE_NODICT_VAR) \
!= NOTDONE) { \
- return OK; \
+ goto typval_encode_stop_converting_one_item; \
} \
} while (0)