]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0296: Redundant and incorrect integer pointer casts in drawline.c v9.2.0296
authorzeertzjq <zeertzjq@outlook.com>
Sat, 4 Apr 2026 08:55:59 +0000 (08:55 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 4 Apr 2026 08:55:59 +0000 (08:55 +0000)
commit18cd55dbc4b97f06360905aa3efce5ab5d9bcad8
treeb90487a4a08ce919847e486479c19734d6a1b96b
parent08bd9114c17e1dc8fb234cd5362e77db8be3aad5
patch 9.2.0296: Redundant and incorrect integer pointer casts in drawline.c

Problem:  Currently `colnr_T` and `int` and the same type, so casting
          `int *` to `colnr_T *` is redundant. Additionally, even if
          they are changed to different types in the future, these casts
          are incorrect as they won't work on big-endian platforms.
Solution: Remove the casts. Also fix two cases of passing false instead
          of 0 to an integer argument (zeertzjq).

related: #19672
closes:  #19907

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/drawline.c
src/ops.c
src/version.c