mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
macro: Add MAX macro and rename min to MIN
This commit is contained in:
@@ -287,7 +287,7 @@ MsgpackRpcRequestHandler msgpack_rpc_get_handler_for(const char *name,
|
||||
{
|
||||
String m = {
|
||||
.data=(char *)name,
|
||||
.size=min(name_len, ]]..max_fname_len..[[)
|
||||
.size=MIN(name_len, ]]..max_fname_len..[[)
|
||||
};
|
||||
MsgpackRpcRequestHandler rv =
|
||||
map_get(String, MsgpackRpcRequestHandler)(methods, m);
|
||||
|
||||
Reference in New Issue
Block a user