From: Bram Moolenaar Date: Sat, 4 May 2019 12:05:08 +0000 (+0200) Subject: patch 8.1.1260: comparing with pointer instead of value X-Git-Tag: v8.1.1260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4f5f3aa3d597ec9188e01b004013a02bceb4026;p=vim patch 8.1.1260: comparing with pointer instead of value Problem: Comparing with pointer instead of value. Solution: Add a "*". (Ken Takata, closes #4336) --- diff --git a/src/usercmd.c b/src/usercmd.c index ca01a3ca3..45d7ea052 100644 --- 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 { diff --git a/src/version.c b/src/version.c index c8bcdecf0..5941c6e6f 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1260, /**/ 1259, /**/