Mercurial > vim
comparison src/map.c @ 24574:3a3d5ee00574 v8.2.2826
patch 8.2.2826: compiler warnings for int to size_t conversion
Commit: https://github.com/vim/vim/commit/551c1aed65817558ac1ece541c246ea585645807
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 3 18:57:05 2021 +0200
patch 8.2.2826: compiler warnings for int to size_t conversion
Problem: Compiler warnings for int to size_t conversion. (Randall W.
Morris)
Solution: Add type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 May 2021 19:00:04 +0200 |
parents | 839145e0fdaa |
children | 7334bf933510 |
comparison
equal
deleted
inserted
replaced
24573:206a2cdcaf8a | 24574:3a3d5ee00574 |
---|---|
1550 tb[j + newlen] = NUL; | 1550 tb[j + newlen] = NUL; |
1551 // Need to escape K_SPECIAL. | 1551 // Need to escape K_SPECIAL. |
1552 escaped = vim_strsave_escape_csi(tb + j); | 1552 escaped = vim_strsave_escape_csi(tb + j); |
1553 if (escaped != NULL) | 1553 if (escaped != NULL) |
1554 { | 1554 { |
1555 newlen = STRLEN(escaped); | 1555 newlen = (int)STRLEN(escaped); |
1556 mch_memmove(tb + j, escaped, newlen); | 1556 mch_memmove(tb + j, escaped, newlen); |
1557 j += newlen; | 1557 j += newlen; |
1558 vim_free(escaped); | 1558 vim_free(escaped); |
1559 } | 1559 } |
1560 } | 1560 } |