comparison src/getchar.c @ 27752:c1d1639b52dd v8.2.4402

patch 8.2.4402: missing parenthesis may cause unexpected problems Commit: https://github.com/vim/vim/commit/ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83 Author: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Wed Feb 16 19:24:07 2022 +0000 patch 8.2.4402: missing parenthesis may cause unexpected problems Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes https://github.com/vim/vim/issues/9788)
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Feb 2022 20:30:03 +0100
parents 49b667252942
children 9b01fea87065
comparison
equal deleted inserted replaced
27751:c9330d10419b 27752:c1d1639b52dd
3592 * Don't use buf[] here, closescript() may have freed typebuf.tb_buf[] 3592 * Don't use buf[] here, closescript() may have freed typebuf.tb_buf[]
3593 * and buf may be pointing inside typebuf.tb_buf[]. 3593 * and buf may be pointing inside typebuf.tb_buf[].
3594 */ 3594 */
3595 if (got_int) 3595 if (got_int)
3596 { 3596 {
3597 #define DUM_LEN MAXMAPLEN * 3 + 3 3597 #define DUM_LEN (MAXMAPLEN * 3 + 3)
3598 char_u dum[DUM_LEN + 1]; 3598 char_u dum[DUM_LEN + 1];
3599 3599
3600 for (;;) 3600 for (;;)
3601 { 3601 {
3602 len = ui_inchar(dum, DUM_LEN, 0L, 0); 3602 len = ui_inchar(dum, DUM_LEN, 0L, 0);