Mercurial > vim
comparison src/vim9script.c @ 24160:e695db9a5465 v8.2.2621
patch 8.2.2621: typval2type() cannot handle recursive structures
Commit: https://github.com/vim/vim/commit/108cf0153c5770e343aec9e2390acdaa4a0b149a
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 18 22:15:04 2021 +0100
patch 8.2.2621: typval2type() cannot handle recursive structures
Problem: typval2type() cannot handle recursive structures.
Solution: Use copyID. (closes https://github.com/vim/vim/issues/7979)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 18 Mar 2021 22:30:03 +0100 |
parents | 93e69703a290 |
children | 12378fbc99bc |
comparison
equal
deleted
inserted
replaced
24159:f2c1bf894535 | 24160:e695db9a5465 |
---|---|
748 sv = find_typval_in_script(&di->di_tv); | 748 sv = find_typval_in_script(&di->di_tv); |
749 } | 749 } |
750 if (sv != NULL) | 750 if (sv != NULL) |
751 { | 751 { |
752 if (*type == NULL) | 752 if (*type == NULL) |
753 *type = typval2type(tv, &si->sn_type_list); | 753 *type = typval2type(tv, get_copyID(), &si->sn_type_list); |
754 sv->sv_type = *type; | 754 sv->sv_type = *type; |
755 } | 755 } |
756 | 756 |
757 // let ex_export() know the export worked. | 757 // let ex_export() know the export worked. |
758 is_export = FALSE; | 758 is_export = FALSE; |