Mercurial > vim
comparison src/if_py_both.h @ 15236:9e6d1e80ca2b v8.1.0628
patch 8.1.0628: Compiler warning on MS-Windows.
commit https://github.com/vim/vim/commit/80dae04d690d9aba26d443d4a19f3bd45ed0990b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 23 13:36:40 2018 +0100
patch 8.1.0628: Compiler warning on MS-Windows.
Problem: Compiler warning on MS-Windows.
Solution: Add type cast. (Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Dec 2018 13:45:07 +0100 |
parents | ee63f4fe3d45 |
children | 1d2b5c016f17 |
comparison
equal
deleted
inserted
replaced
15235:d7614198c4b7 | 15236:9e6d1e80ca2b |
---|---|
2951 if (p[0] == K_SPECIAL && p[1] == KS_EXTRA && p[2] == (int)KE_SNR) | 2951 if (p[0] == K_SPECIAL && p[1] == KS_EXTRA && p[2] == (int)KE_SNR) |
2952 { | 2952 { |
2953 char_u *np; | 2953 char_u *np; |
2954 size_t len = STRLEN(p) + 1; | 2954 size_t len = STRLEN(p) + 1; |
2955 | 2955 |
2956 if ((np = alloc(len + 2)) == NULL) | 2956 if ((np = alloc((int)len + 2)) == NULL) |
2957 { | 2957 { |
2958 vim_free(p); | 2958 vim_free(p); |
2959 return NULL; | 2959 return NULL; |
2960 } | 2960 } |
2961 mch_memmove(np, "<SNR>", 5); | 2961 mch_memmove(np, "<SNR>", 5); |