commit | 108cf0153c5770e343aec9e2390acdaa4a0b149a | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Mar 18 22:15:04 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Mar 18 22:15:04 2021 +0100 |
tree | def8f451bc49e4e5d7b98e5cc7e33dd52aaffb29 | |
parent | 4b3e1964d85a25ac7b2202094d1abf27ab93cc23 [diff] [blame] |
patch 8.2.2621: typval2type() cannot handle recursive structures Problem: typval2type() cannot handle recursive structures. Solution: Use copyID. (closes #7979)
diff --git a/src/vim9script.c b/src/vim9script.c index 309d4bd..9366e76 100644 --- a/src/vim9script.c +++ b/src/vim9script.c
@@ -750,7 +750,7 @@ if (sv != NULL) { if (*type == NULL) - *type = typval2type(tv, &si->sn_type_list); + *type = typval2type(tv, get_copyID(), &si->sn_type_list); sv->sv_type = *type; }