mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
refactor: remove redundant char casts #15888
This commit is contained in:
@@ -268,9 +268,8 @@ int encode_read_from_list(ListReaderState *const state, char *const buf, const s
|
||||
|| TV_LIST_ITEM_TV(state->li)->vval.v_string != NULL);
|
||||
for (size_t i = state->offset; i < state->li_length && p < buf_end; i++) {
|
||||
assert(TV_LIST_ITEM_TV(state->li)->vval.v_string != NULL);
|
||||
const char ch = (char)(
|
||||
TV_LIST_ITEM_TV(state->li)->vval.v_string[state->offset++]);
|
||||
*p++ = (char)((char)ch == (char)NL ? (char)NUL : (char)ch);
|
||||
const char ch = (char)(TV_LIST_ITEM_TV(state->li)->vval.v_string[state->offset++]);
|
||||
*p++ = (char)(ch == (char)NL ? (char)NUL : ch);
|
||||
}
|
||||
if (p < buf_end) {
|
||||
state->li = TV_LIST_ITEM_NEXT(state->list, state->li);
|
||||
|
Reference in New Issue
Block a user