mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-12 17:15:21 +00:00
red_parse_qxl: Do not compute abs unsigned int
SpiceBitmap's stride is uint32_t.
from clang:
red_parse_qxl.c:452:41: error: taking the absolute value of unsigned
type 'uint32_t' (aka 'unsigned int') has no effect
bitmap_size = red->u.bitmap.y * abs(red->u.bitmap.stride);
^
This commit is contained in:
parent
a5ec6a2923
commit
94e55bce42
@ -445,7 +445,7 @@ static SpiceImage *red_get_image(RedMemSlotInfo *slots, int group_id,
|
||||
red->u.bitmap.palette = rp;
|
||||
red->u.bitmap.palette_id = rp->unique;
|
||||
}
|
||||
bitmap_size = red->u.bitmap.y * abs(red->u.bitmap.stride);
|
||||
bitmap_size = red->u.bitmap.y * red->u.bitmap.stride;
|
||||
if (qxl_flags & QXL_BITMAP_DIRECT) {
|
||||
red->u.bitmap.data = red_get_image_data_flat(slots, group_id,
|
||||
qxl->bitmap.data,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user