mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +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:
@@ -37,19 +37,19 @@ struct u_header {
|
||||
// the undo file in u_read_undo()
|
||||
union {
|
||||
u_header_T *ptr; // pointer to next undo header in list
|
||||
long seq;
|
||||
int seq;
|
||||
} uh_next;
|
||||
union {
|
||||
u_header_T *ptr; // pointer to previous header in list
|
||||
long seq;
|
||||
int seq;
|
||||
} uh_prev;
|
||||
union {
|
||||
u_header_T *ptr; // pointer to next header for alt. redo
|
||||
long seq;
|
||||
int seq;
|
||||
} uh_alt_next;
|
||||
union {
|
||||
u_header_T *ptr; // pointer to previous header for alt. redo
|
||||
long seq;
|
||||
int seq;
|
||||
} uh_alt_prev;
|
||||
int uh_seq; // sequence number, higher == newer undo
|
||||
int uh_walk; // used by undo_time()
|
||||
|
Reference in New Issue
Block a user