Commit 18cd55d
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>1 parent 08bd911 commit 18cd55d
3 files changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1418 | 1418 | | |
1419 | 1419 | | |
1420 | 1420 | | |
1421 | | - | |
1422 | | - | |
| 1421 | + | |
1423 | 1422 | | |
1424 | 1423 | | |
1425 | 1424 | | |
| |||
1437 | 1436 | | |
1438 | 1437 | | |
1439 | 1438 | | |
1440 | | - | |
1441 | | - | |
| 1439 | + | |
1442 | 1440 | | |
1443 | 1441 | | |
1444 | | - | |
1445 | | - | |
| 1442 | + | |
1446 | 1443 | | |
1447 | 1444 | | |
1448 | 1445 | | |
| |||
1481 | 1478 | | |
1482 | 1479 | | |
1483 | 1480 | | |
1484 | | - | |
| 1481 | + | |
1485 | 1482 | | |
1486 | 1483 | | |
1487 | 1484 | | |
1488 | 1485 | | |
1489 | 1486 | | |
1490 | 1487 | | |
1491 | | - | |
| 1488 | + | |
1492 | 1489 | | |
1493 | 1490 | | |
1494 | 1491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2620 | 2620 | | |
2621 | 2621 | | |
2622 | 2622 | | |
2623 | | - | |
| 2623 | + | |
2624 | 2624 | | |
2625 | 2625 | | |
2626 | 2626 | | |
| |||
2639 | 2639 | | |
2640 | 2640 | | |
2641 | 2641 | | |
2642 | | - | |
| 2642 | + | |
2643 | 2643 | | |
2644 | 2644 | | |
2645 | 2645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
737 | 739 | | |
738 | 740 | | |
739 | 741 | | |
| |||
0 commit comments