From 9925b3a0477e5af348a8348544e69a65a9222c1b Mon Sep 17 00:00:00 2001 From: Anton Ovchinnikov Date: Mon, 9 Mar 2015 00:40:50 +0100 Subject: Remove redundant casts --- src/nvim/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/search.c') diff --git a/src/nvim/search.c b/src/nvim/search.c index 3b8f0bb6ba..6e2824bc8e 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -986,7 +986,7 @@ int do_search( * If there is a matching '/' or '?', toss it. */ ps = strcopy; - p = skip_regexp(pat, dirc, (int)p_magic, &strcopy); + p = skip_regexp(pat, dirc, p_magic, &strcopy); if (strcopy != ps) { /* made a copy of "pat" to change "\?" to "?" */ searchcmdlen += (int)(STRLEN(pat) - STRLEN(strcopy)); @@ -3811,7 +3811,7 @@ current_search ( flags = SEARCH_END; int result = searchit(curwin, curbuf, &pos, (dir ? FORWARD : BACKWARD), - spats[last_idx].pat, (long) (i ? count : 1), + spats[last_idx].pat, i ? count : 1, SEARCH_KEEP | flags, RE_SEARCH, 0, NULL); /* First search may fail, but then start searching from the -- cgit