mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
Enable -Wconversion: fold.c.
Refactor summary: - foldinfo_T.fi_lnum: int --> linenr_T Reorder field for optimal packing. - foldAddMarker(..., markerlen): int --> size_t * foldstartmarkerlen: int --> size_t - foldDelMarker(..., markerlen): int --> size_t * foldendmarkerlen: int --> size_t Helped-by: oni-link <knil.ino@gmail.com>
This commit is contained in:
@@ -7653,18 +7653,22 @@ int check_ff_value(char_u *p)
|
||||
* Return the effective shiftwidth value for current buffer, using the
|
||||
* 'tabstop' value when 'shiftwidth' is zero.
|
||||
*/
|
||||
long get_sw_value(buf_T *buf)
|
||||
int get_sw_value(buf_T *buf)
|
||||
{
|
||||
return buf->b_p_sw ? buf->b_p_sw : buf->b_p_ts;
|
||||
long result = buf->b_p_sw ? buf->b_p_sw : buf->b_p_ts;
|
||||
assert(result >= 0 && result <= INT_MAX);
|
||||
return (int)result;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the effective softtabstop value for the current buffer, using the
|
||||
* 'tabstop' value when 'softtabstop' is negative.
|
||||
*/
|
||||
long get_sts_value(void)
|
||||
int get_sts_value(void)
|
||||
{
|
||||
return curbuf->b_p_sts < 0 ? get_sw_value(curbuf) : curbuf->b_p_sts;
|
||||
long result = curbuf->b_p_sts < 0 ? get_sw_value(curbuf) : curbuf->b_p_sts;
|
||||
assert(result >= 0 && result <= INT_MAX);
|
||||
return (int)result;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user