aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-18 16:47:25 +0100
committerGitHub <noreply@github.com>2018-03-18 16:47:25 +0100
commit72e4c9d8e776790e40b2a5911bb702de897fbd12 (patch)
tree06362caeb7fb916ced7202c5b71d0d5f3757a304 /src/nvim/eval
parentf407a94032ae7c3a78aa39c2de02e37d14a5f861 (diff)
parent65b66bc332c56c04d4687f11b601a59ddd5d09bd (diff)
downloadrneovim-72e4c9d8e776790e40b2a5911bb702de897fbd12.tar.gz
rneovim-72e4c9d8e776790e40b2a5911bb702de897fbd12.tar.bz2
rneovim-72e4c9d8e776790e40b2a5911bb702de897fbd12.zip
Merge #8142 'build/msvc: fix some warnings'
Diffstat (limited to 'src/nvim/eval')
-rw-r--r--src/nvim/eval/typval.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h
index 40a1738d9e..2272a580d6 100644
--- a/src/nvim/eval/typval.h
+++ b/src/nvim/eval/typval.h
@@ -206,11 +206,11 @@ struct dictitem_S {
char_u di_key[1]; ///< key (actually longer!)
};
-#define TV_DICTITEM_STRUCT(KEY_LEN) \
+#define TV_DICTITEM_STRUCT(...) \
struct { \
typval_T di_tv; /* Structure that holds scope dictionary itself. */ \
uint8_t di_flags; /* Flags. */ \
- char_u di_key[KEY_LEN]; /* Key value. */ \
+ char_u di_key[__VA_ARGS__]; /* Key value. */ \
}
/// Structure to hold a scope dictionary