summaryrefslogtreecommitdiff
path: root/src/structs.h
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/structs.h
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/structs.h')
-rw-r--r--src/structs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/structs.h b/src/structs.h
index 74bc2ff6e..762cd867c 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1410,13 +1410,13 @@ struct listvar_S
varnumber_T lv_start;
varnumber_T lv_end;
int lv_stride;
- };
+ } nonmat;
struct { // used for materialized list
listitem_T *lv_last; // last item, NULL if none
listitem_T *lv_idx_item; // when not NULL item at index "lv_idx"
int lv_idx; // cached index of an item
- };
- };
+ } mat;
+ } lv_u;
list_T *lv_copylist; // copied list used by deepcopy()
list_T *lv_used_next; // next list in used lists list
list_T *lv_used_prev; // previous list in used lists list