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:
dundargoc
2023-09-29 14:58:48 +02:00
committed by dundargoc
parent dacd34364f
commit 8e932480f6
52 changed files with 280 additions and 290 deletions

View File

@@ -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()