summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-23 14:33:19 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-23 14:33:19 +0200
commitdc633cf82758f67f656cda7fa8ccc30414ee53f8 (patch)
treee8a018a83d53136a6891b4ee4d37a8eb4183ce53 /src/ops.c
parent73dfe917ba6357413aaf98a021c91add5ac6e9bc (diff)
downloadvim-git-dc633cf82758f67f656cda7fa8ccc30414ee53f8.tar.gz
patch 7.4.1780v7.4.1780
Problem: Warnings reported by cppcheck. Solution: Fix the warnings. (Dominique Pelle)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 0584877eb..983d9d0e6 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -5709,7 +5709,7 @@ do_addsub(
if (buf1 == NULL)
goto theend;
ptr = buf1;
- if (negative && (!visual || (visual && was_positive)))
+ if (negative && (!visual || was_positive))
{
*ptr++ = '-';
}