Mercurial > vim
changeset 16513:81a9d0fad357 v8.1.1260
patch 8.1.1260: comparing with pointer instead of value
commit https://github.com/vim/vim/commit/e4f5f3aa3d597ec9188e01b004013a02bceb4026
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 4 14:05:08 2019 +0200
patch 8.1.1260: comparing with pointer instead of value
Problem: Comparing with pointer instead of value.
Solution: Add a "*". (Ken Takata, closes https://github.com/vim/vim/issues/4336)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 May 2019 14:15:06 +0200 |
parents | 7e5f5a844629 |
children | 23780193686f |
files | src/usercmd.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/usercmd.c +++ b/src/usercmd.c @@ -824,10 +824,10 @@ invalid_count: emsg(_("E179: argument required for -addr")); return FAIL; } - if (parse_addr_type_arg(val, (int)vallen, addr_type_arg) == FAIL) + if (parse_addr_type_arg(val, (int)vallen, addr_type_arg) == FAIL) return FAIL; - if (addr_type_arg != ADDR_LINES) - *argt |= (ZEROR) ; + if (*addr_type_arg != ADDR_LINES) + *argt |= ZEROR; } else {