aboutsummaryrefslogtreecommitdiff
path: root/src/spell.c
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/spell.c
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/spell.c')
-rw-r--r--src/spell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spell.c b/src/spell.c
index b948aed530..b2eb178e0d 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -568,7 +568,7 @@ typedef struct langp_S {
static char_u *int_wordlist = NULL;
typedef struct wordcount_S {
- short_u wc_count; // nr of times word was seen
+ uint16_t wc_count; // nr of times word was seen
char_u wc_word[1]; // word, actually longer
} wordcount_T;
@@ -4252,7 +4252,7 @@ struct wordnode_S {
// In the soundfolded word tree "wn_flags" has the MSW of the wordnr and
// "wn_region" the LSW of the wordnr.
char_u wn_affixID; // supported/required prefix ID or 0
- short_u wn_flags; // WF_ flags
+ uint16_t wn_flags; // WF_ flags
short wn_region; // region mask
#ifdef SPELL_PRINTTREE
@@ -7236,7 +7236,7 @@ put_node (
// associated condition nr (stored in wn_region). The
// byte value is misused to store the "rare" and "not
// combining" flags
- if (np->wn_flags == (short_u)PFX_FLAGS)
+ if (np->wn_flags == (uint16_t)PFX_FLAGS)
putc(BY_NOFLAGS, fd); // <byte>
else {
putc(BY_FLAGS, fd); // <byte>