comparison src/ex_cmds.c @ 20830:9064044fd4f6 v8.2.0967

patch 8.2.0967: unnecessary type casts for vim_strnsave() Commit: https://github.com/vim/vim/commit/71ccd03ee8a43b20000214a9c99dcc90f039edca Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 12 22:59:11 2020 +0200 patch 8.2.0967: unnecessary type casts for vim_strnsave() Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jun 2020 23:00:04 +0200
parents c4bce986c31a
children 5db63c2c6929
comparison
equal deleted inserted replaced
20829:3d0d6410aecd 20830:9064044fd4f6
3219 if (eap->nextcmd == NULL || *eap->nextcmd == NUL) 3219 if (eap->nextcmd == NULL || *eap->nextcmd == NUL)
3220 break; 3220 break;
3221 p = vim_strchr(eap->nextcmd, NL); 3221 p = vim_strchr(eap->nextcmd, NL);
3222 if (p == NULL) 3222 if (p == NULL)
3223 p = eap->nextcmd + STRLEN(eap->nextcmd); 3223 p = eap->nextcmd + STRLEN(eap->nextcmd);
3224 theline = vim_strnsave(eap->nextcmd, (int)(p - eap->nextcmd)); 3224 theline = vim_strnsave(eap->nextcmd, p - eap->nextcmd);
3225 if (*p != NUL) 3225 if (*p != NUL)
3226 ++p; 3226 ++p;
3227 eap->nextcmd = p; 3227 eap->nextcmd = p;
3228 } 3228 }
3229 else 3229 else