Mercurial > vim
comparison src/register.c @ 27426:41e0dcf38521 v8.2.4241
patch 8.2.4241: some type casts are redundant
Commit: https://github.com/vim/vim/commit/420fabcd4ffeaf79082a6e43db91e1d363f88f27
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Fri Jan 28 15:28:04 2022 +0000
patch 8.2.4241: some type casts are redundant
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes https://github.com/vim/vim/issues/9643)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Jan 2022 16:30:11 +0100 |
parents | 123b0747fa10 |
children | 3f8a57b8c7d8 |
comparison
equal
deleted
inserted
replaced
27425:b5bd6c851b8a | 27426:41e0dcf38521 |
---|---|
1840 oldp = ml_get_curline(); | 1840 oldp = ml_get_curline(); |
1841 oldlen = (int)STRLEN(oldp); | 1841 oldlen = (int)STRLEN(oldp); |
1842 for (ptr = oldp; vcol < col && *ptr; ) | 1842 for (ptr = oldp; vcol < col && *ptr; ) |
1843 { | 1843 { |
1844 // Count a tab for what it's worth (if list mode not on) | 1844 // Count a tab for what it's worth (if list mode not on) |
1845 incr = lbr_chartabsize_adv(oldp, &ptr, (colnr_T)vcol); | 1845 incr = lbr_chartabsize_adv(oldp, &ptr, vcol); |
1846 vcol += incr; | 1846 vcol += incr; |
1847 } | 1847 } |
1848 bd.textcol = (colnr_T)(ptr - oldp); | 1848 bd.textcol = (colnr_T)(ptr - oldp); |
1849 | 1849 |
1850 shortline = (vcol < col) || (vcol == col && !*ptr) ; | 1850 shortline = (vcol < col) || (vcol == col && !*ptr) ; |