mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 13:26:06 +00:00
API: Refactor: Change the integer type of remote objects to uint64_t
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#define REMOTE_TYPE(type) typedef Integer type
|
||||
#define REMOTE_TYPE(type) typedef uint64_t type
|
||||
|
||||
#define TYPED_ARRAY_OF(type) \
|
||||
typedef struct { \
|
||||
|
@@ -285,7 +285,7 @@ Object vim_to_object(typval_T *obj)
|
||||
|
||||
buf_T *find_buffer(Buffer buffer, Error *err)
|
||||
{
|
||||
if (buffer > INT_MAX || buffer < INT_MIN) {
|
||||
if (buffer > INT_MAX) {
|
||||
set_api_error("Invalid buffer id", err);
|
||||
return NULL;
|
||||
}
|
||||
@@ -316,7 +316,7 @@ win_T * find_window(Window window, Error *err)
|
||||
|
||||
tabpage_T * find_tab(Tabpage tabpage, Error *err)
|
||||
{
|
||||
if (tabpage > INT_MAX || tabpage < INT_MIN) {
|
||||
if (tabpage > INT_MAX) {
|
||||
set_api_error("Invalid tabpage id", err);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user