mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
macro: Add MAX macro and rename min to MIN
This commit is contained in:
@@ -100,7 +100,7 @@ static inline khint_t String_hash(String s)
|
||||
|
||||
static inline bool String_eq(String a, String b)
|
||||
{
|
||||
return strncmp(a.data, b.data, min(a.size, b.size)) == 0;
|
||||
return strncmp(a.data, b.data, MIN(a.size, b.size)) == 0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user