mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
Remove project int types: Case short_u: Replace with uint16_t.
- Replace short_u with uint16_t (same size, should give no problems). - When possible, remove explicit downcasts so that they are found when flag -Wconversion enabled. - Remove short_u typedef. Requested in #459.
This commit is contained in:

committed by
Justin M. Keyes

parent
37935130f9
commit
cb7fb8c008
@@ -378,7 +378,7 @@ typedef struct {
|
||||
synstate_T *b_sst_firstfree;
|
||||
int b_sst_freecount;
|
||||
linenr_T b_sst_check_lnum;
|
||||
short_u b_sst_lasttick; /* last display tick */
|
||||
uint16_t b_sst_lasttick; /* last display tick */
|
||||
|
||||
/* for spell checking */
|
||||
garray_T b_langp; /* list of pointers to slang_T, see spell.c */
|
||||
@@ -774,7 +774,7 @@ struct tabpage_S {
|
||||
*/
|
||||
typedef struct w_line {
|
||||
linenr_T wl_lnum; /* buffer line number for logical line */
|
||||
short_u wl_size; /* height in screen lines */
|
||||
uint16_t wl_size; /* height in screen lines */
|
||||
char wl_valid; /* TRUE values are valid for text in buffer */
|
||||
char wl_folded; /* TRUE when this is a range of folded lines */
|
||||
linenr_T wl_lastlnum; /* last buffer line number for logical line */
|
||||
|
Reference in New Issue
Block a user