[vim/vim] Redundant and incorrect integer pointer casts in drawline.c (PR #19907)

1 view
Skip to first unread message

zeertzjq

unread,
7:27 PM (2 hours ago) 7:27 PM
to vim/vim, Subscribed

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 using false instead 0.

related: #19672


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19907

Commit Summary

  • 85942c9 Redundant and incorrect integer pointer casts in drawline.c

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19907@github.com>

Reply all
Reply to author
Forward
0 new messages