aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-16 07:29:30 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-03-18 14:11:39 +0100
commit960f09362539a65bedebe2d4e4a878546df66273 (patch)
tree273c29e9a8e8b8337df84c69fec6578f67f6f0b0
parent66a8b593e76a9f0d4a4381139a54590fed354638 (diff)
downloadrneovim-960f09362539a65bedebe2d4e4a878546df66273.tar.gz
rneovim-960f09362539a65bedebe2d4e4a878546df66273.tar.bz2
rneovim-960f09362539a65bedebe2d4e4a878546df66273.zip
build/MSVC: fix "C4028: formal parameter different from declaration"
-rw-r--r--src/nvim/api/private/defs.h2
-rw-r--r--src/nvim/ascii.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h
index 2144c80d6a..390b7e8363 100644
--- a/src/nvim/api/private/defs.h
+++ b/src/nvim/api/private/defs.h
@@ -47,7 +47,7 @@ typedef enum {
/// Internal call from lua code
#define LUA_INTERNAL_CALL (VIML_INTERNAL_CALL + 1)
-static inline bool is_internal_call(uint64_t channel_id)
+static inline bool is_internal_call(const uint64_t channel_id)
REAL_FATTR_ALWAYS_INLINE REAL_FATTR_CONST;
/// Check whether call is internal
diff --git a/src/nvim/ascii.h b/src/nvim/ascii.h
index 9ccb70764d..ff6840d690 100644
--- a/src/nvim/ascii.h
+++ b/src/nvim/ascii.h
@@ -146,7 +146,7 @@ static inline bool ascii_isxdigit(int c)
/// Checks if `c` is an “identifier” character
///
/// That is, whether it is alphanumeric character or underscore.
-static inline bool ascii_isident(const int c)
+static inline bool ascii_isident(int c)
{
return ASCII_ISALNUM(c) || c == '_';
}