summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-29 21:27:21 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-29 21:27:21 +0100
commit0ff6aad393c4130818fb4f49137380f78d7cc882 (patch)
treee3a6207de8cae98003e0c30878a943fcde5888e8 /src/channel.c
parent4549ece47cc8d6487d8e64ae37361fea87e3ad39 (diff)
downloadvim-git-0ff6aad393c4130818fb4f49137380f78d7cc882.tar.gz
patch 8.2.0173: build fails with old compilerv8.2.0173
Problem: Build fails with old compiler. Solution: Do not use anonymous unions. (John Marriott)
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channel.c b/src/channel.c
index 3d891e823..3fdd312b3 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -4166,8 +4166,8 @@ ch_expr_common(typval_T *argvars, typval_T *rettv, int eval)
// Move the item from the list and then change the type to
// avoid the value being freed.
- *rettv = list->lv_last->li_tv;
- list->lv_last->li_tv.v_type = VAR_NUMBER;
+ *rettv = list->lv_u.mat.lv_last->li_tv;
+ list->lv_u.mat.lv_last->li_tv.v_type = VAR_NUMBER;
free_tv(listtv);
}
}