mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 18:58:18 +00:00
refactor: remove long
long is 32-bits even on 64-bit windows which makes the type suboptimal for a codebase meant to be cross-platform.
This commit is contained in:
@@ -729,7 +729,7 @@ static void set_option_to(uint64_t channel_id, void *to, int type, String name,
|
||||
"Option '%s' value is out of range", name.data, {
|
||||
return;
|
||||
});
|
||||
optval = NUMBER_OPTVAL(value.data.integer);
|
||||
optval = NUMBER_OPTVAL((OptInt)value.data.integer);
|
||||
} else {
|
||||
VALIDATE(value.type == kObjectTypeString, "Option '%s' value must be String", name.data, {
|
||||
return;
|
||||
|
@@ -165,7 +165,7 @@ static OptVal object_as_optval(Object o, bool *error)
|
||||
case kObjectTypeBoolean:
|
||||
return BOOLEAN_OPTVAL(o.data.boolean);
|
||||
case kObjectTypeInteger:
|
||||
return NUMBER_OPTVAL(o.data.integer);
|
||||
return NUMBER_OPTVAL((OptInt)o.data.integer);
|
||||
case kObjectTypeString:
|
||||
return STRING_OPTVAL(o.data.string);
|
||||
default:
|
||||
|
Reference in New Issue
Block a user