mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 18:34:19 +00:00
glz: WindowImageSegment lines lines_end as void*
Instead of using uint8_t* which can cause several warnings on casting as
the example below:
./glz_encode_tmpl.c:321:29: error: cast from 'uint8_t *'
(aka 'unsigned char *') to 'rgb16_pixel_t *' (aka 'unsigned short *')
increases required alignment from 1 to 2 [-Werror,-Wcast-align]
ref_limit = (PIXEL *)(seg->lines_end);
^~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
fd75632a8f
commit
2413484305
@ -61,8 +61,8 @@ struct WindowImage {
|
||||
An encoded match can refer to only one segment.*/
|
||||
struct WindowImageSegment {
|
||||
WindowImage *image;
|
||||
uint8_t *lines;
|
||||
uint8_t *lines_end;
|
||||
void *lines;
|
||||
void *lines_end;
|
||||
uint32_t pixels_num; // Number of pixels in the segment
|
||||
uint64_t pixels_so_far; // Total no. pixels passed through the window till this segment.
|
||||
// NOTE - never use size delta independently. It should
|
||||
|
||||
Loading…
Reference in New Issue
Block a user