Mercurial > vim
comparison src/regexp_bt.c @ 20830:9064044fd4f6 v8.2.0967
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Commit: https://github.com/vim/vim/commit/71ccd03ee8a43b20000214a9c99dcc90f039edca
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 12 22:59:11 2020 +0200
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Jun 2020 23:00:04 +0200 |
parents | aadd1cae2ff5 |
children | 740b16b3c80b |
comparison
equal
deleted
inserted
replaced
20829:3d0d6410aecd | 20830:9064044fd4f6 |
---|---|
4586 else | 4586 else |
4587 { | 4587 { |
4588 if (reg_startzp[i] != NULL && reg_endzp[i] != NULL) | 4588 if (reg_startzp[i] != NULL && reg_endzp[i] != NULL) |
4589 re_extmatch_out->matches[i] = | 4589 re_extmatch_out->matches[i] = |
4590 vim_strnsave(reg_startzp[i], | 4590 vim_strnsave(reg_startzp[i], |
4591 (int)(reg_endzp[i] - reg_startzp[i])); | 4591 reg_endzp[i] - reg_startzp[i]); |
4592 } | 4592 } |
4593 } | 4593 } |
4594 } | 4594 } |
4595 #endif | 4595 #endif |
4596 return 1 + rex.lnum; | 4596 return 1 + rex.lnum; |