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:
Victor Toso 2015-08-05 14:23:19 +02:00 committed by Christophe Fergeau
parent a5ec6a2923
commit 94e55bce42

View File

@ -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,