diff options
Diffstat (limited to 'src/nvim/api/private')
-rw-r--r-- | src/nvim/api/private/dispatch.c | 2 | ||||
-rw-r--r-- | src/nvim/api/private/helpers.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/private/dispatch.c b/src/nvim/api/private/dispatch.c index c08225bbfc..8492225a69 100644 --- a/src/nvim/api/private/dispatch.c +++ b/src/nvim/api/private/dispatch.c @@ -41,7 +41,7 @@ MsgpackRpcRequestHandler msgpack_rpc_get_handler_for(const char *name, if (!rv.fn) { api_set_error(error, kErrorTypeException, "Invalid method: %.*s", - m.size > 0 ? m.size : sizeof("<empty>"), + m.size > 0 ? (int)m.size : (int)sizeof("<empty>"), m.size > 0 ? m.data : "<empty>"); } return rv; diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index ecc0ede4a4..cd6060b5d2 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -1157,7 +1157,7 @@ static void set_option_value_err(char *key, } void api_set_error(Error *err, ErrorType errType, const char *format, ...) - FUNC_ATTR_NONNULL_ALL + FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PRINTF(3, 4) { assert(kErrorTypeNone != errType); va_list args1; |