mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
refactor: the long goodbye
long is 32 bits on windows, while it is 64 bits on other architectures. This makes the type suboptimal for a codebase meant to be cross-platform. Replace it with more appropriate integer types.
This commit is contained in:
@@ -234,7 +234,7 @@ enum {
|
||||
PFD_NOTSPECIAL = 0xfd, // highest value that's not special
|
||||
};
|
||||
|
||||
static long spell_suggest_timeout = 5000;
|
||||
static int spell_suggest_timeout = 5000;
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "spellsuggest.c.generated.h"
|
||||
@@ -806,7 +806,7 @@ static void spell_find_suggest(char *badptr, int badlen, suginfo_T *su, int maxc
|
||||
spell_suggest_file(su, buf + 5);
|
||||
} else if (strncmp(buf, "timeout:", 8) == 0) {
|
||||
// Limit the time searching for suggestions.
|
||||
spell_suggest_timeout = atol(buf + 8);
|
||||
spell_suggest_timeout = atoi(buf + 8);
|
||||
} else if (!did_intern) {
|
||||
// Use internal method once.
|
||||
spell_suggest_intern(su, interactive);
|
||||
|
Reference in New Issue
Block a user