aboutsummaryrefslogtreecommitdiff
path: root/src/buffer_defs.h
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-29 14:46:44 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-05-03 10:04:49 -0400
commitcb7fb8c008e3da673014952b960bf4604af7b210 (patch)
treef0e95663bb19be82fdaece06194e33cdc0c2d646 /src/buffer_defs.h
parent37935130f9c967f58de9900f7d86042116db9fd5 (diff)
downloadrneovim-cb7fb8c008e3da673014952b960bf4604af7b210.tar.gz
rneovim-cb7fb8c008e3da673014952b960bf4604af7b210.tar.bz2
rneovim-cb7fb8c008e3da673014952b960bf4604af7b210.zip
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.
Diffstat (limited to 'src/buffer_defs.h')
-rw-r--r--src/buffer_defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer_defs.h b/src/buffer_defs.h
index fd28368b4d..5c55173022 100644
--- a/src/buffer_defs.h
+++ b/src/buffer_defs.h
@@ -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 */