Commit b894f62
authored
enca: fix discard-qualifier warning in enca_eol_surface() (#99)
memchr() returns void* from a const unsigned char* buffer but was
assigned to a non-const unsigned char* p, discarding the const
qualifier. Change p to const unsigned char* to correctly propagate
constness from the buffer parameter.1 parent d4e4e59 commit b894f62
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| |||
0 commit comments