comparison src/channel.c @ 19229:d776967d0f0d v8.2.0173

patch 8.2.0173: build fails with old compiler Commit: https://github.com/vim/vim/commit/0ff6aad393c4130818fb4f49137380f78d7cc882 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 29 21:27:21 2020 +0100 patch 8.2.0173: build fails with old compiler Problem: Build fails with old compiler. Solution: Do not use anonymous unions. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Jan 2020 21:30:05 +0100
parents e7b4fff348dd
children 5ed8297121fa
comparison
equal deleted inserted replaced
19228:6db2a20db2c3 19229:d776967d0f0d
4164 { 4164 {
4165 list_T *list = listtv->vval.v_list; 4165 list_T *list = listtv->vval.v_list;
4166 4166
4167 // Move the item from the list and then change the type to 4167 // Move the item from the list and then change the type to
4168 // avoid the value being freed. 4168 // avoid the value being freed.
4169 *rettv = list->lv_last->li_tv; 4169 *rettv = list->lv_u.mat.lv_last->li_tv;
4170 list->lv_last->li_tv.v_type = VAR_NUMBER; 4170 list->lv_u.mat.lv_last->li_tv.v_type = VAR_NUMBER;
4171 free_tv(listtv); 4171 free_tv(listtv);
4172 } 4172 }
4173 } 4173 }
4174 free_job_options(&opt); 4174 free_job_options(&opt);
4175 } 4175 }