aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
committerAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
commit9925b3a0477e5af348a8348544e69a65a9222c1b (patch)
tree467cdcd1d1f9f6662aa7ea9331f4ddceacbdbfb8 /src/nvim/search.c
parentc0a668aa26a01145bee1d8162e14bacd0a10eca2 (diff)
downloadrneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.gz
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.bz2
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.zip
Remove redundant casts
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c4
1 files changed, 2 insertions, 2 deletions
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