diff options
author | =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> | 2022-01-28 15:28:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-28 15:28:04 +0000 |
commit | 420fabcd4ffeaf79082a6e43db91e1d363f88f27 (patch) | |
tree | 89938a5800078e96cdf992aca87e1c79a2f255ac /src/memline.c | |
parent | fb80862e49fcbcf47907fc8cdaaf5c41cb9eb06e (diff) |
patch 8.2.4241: some type casts are redundantv8.2.4241
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643)
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memline.c b/src/memline.c index 56f6958dea..06fd97c7fe 100644 --- a/src/memline.c +++ b/src/memline.c @@ -551,7 +551,7 @@ ml_set_crypt_key( mf_put(mfp, hp, FALSE, FALSE); // release previous block // get the block (pointer or data) - if ((hp = mf_get(mfp, (blocknr_T)bnum, page_count)) == NULL) + if ((hp = mf_get(mfp, bnum, page_count)) == NULL) { if (bnum == 1) break; @@ -1511,7 +1511,7 @@ ml_recover(int checkext) /* * get block */ - if ((hp = mf_get(mfp, (blocknr_T)bnum, page_count)) == NULL) + if ((hp = mf_get(mfp, bnum, page_count)) == NULL) { if (bnum == 1) { @@ -3672,7 +3672,7 @@ ml_delete_int(buf_T *buf, linenr_T lnum, int flags) #ifdef FEAT_NETBEANS_INTG if (netbeans_active()) - netbeans_removed(buf, lnum, 0, (long)line_size); + netbeans_removed(buf, lnum, 0, line_size); #endif #ifdef FEAT_PROP_POPUP // If there are text properties, make a copy, so that we can update |