Mercurial > vim
comparison src/blob.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 | 06a137af96f8 |
children | cdaff4db7760 |
comparison
equal
deleted
inserted
replaced
27425:b5bd6c851b8a | 27426:41e0dcf38521 |
---|---|
235 ga_concat(&ga, (char_u *)"0z"); | 235 ga_concat(&ga, (char_u *)"0z"); |
236 for (i = 0; i < blob_len(blob); i++) | 236 for (i = 0; i < blob_len(blob); i++) |
237 { | 237 { |
238 if (i > 0 && (i & 3) == 0) | 238 if (i > 0 && (i & 3) == 0) |
239 ga_concat(&ga, (char_u *)"."); | 239 ga_concat(&ga, (char_u *)"."); |
240 vim_snprintf((char *)numbuf, NUMBUFLEN, "%02X", (int)blob_get(blob, i)); | 240 vim_snprintf((char *)numbuf, NUMBUFLEN, "%02X", blob_get(blob, i)); |
241 ga_concat(&ga, numbuf); | 241 ga_concat(&ga, numbuf); |
242 } | 242 } |
243 ga_append(&ga, NUL); // append a NUL at the end | 243 ga_append(&ga, NUL); // append a NUL at the end |
244 *tofree = ga.ga_data; | 244 *tofree = ga.ga_data; |
245 return *tofree; | 245 return *tofree; |