Mercurial > vim
comparison src/if_perl.xs @ 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 | d571231175b4 |
children | 2023b9a5c161 |
comparison
equal
deleted
inserted
replaced
20829:3d0d6410aecd | 20830:9064044fd4f6 |
---|---|
1433 PerlIOVim_write(pTHX_ PerlIO *f, const void *vbuf, Size_t count) | 1433 PerlIOVim_write(pTHX_ PerlIO *f, const void *vbuf, Size_t count) |
1434 { | 1434 { |
1435 char_u *str; | 1435 char_u *str; |
1436 PerlIOVim * s = PerlIOSelf(f, PerlIOVim); | 1436 PerlIOVim * s = PerlIOSelf(f, PerlIOVim); |
1437 | 1437 |
1438 str = vim_strnsave((char_u *)vbuf, (int)count); | 1438 str = vim_strnsave((char_u *)vbuf, count); |
1439 if (str == NULL) | 1439 if (str == NULL) |
1440 return 0; | 1440 return 0; |
1441 msg_split((char_u *)str, s->attr); | 1441 msg_split((char_u *)str, s->attr); |
1442 vim_free(str); | 1442 vim_free(str); |
1443 | 1443 |