mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-07 08:27:25 +00:00
mingw32 build: fix signed/unsigned warnings as errors
This commit is contained in:
parent
074555bcf3
commit
4889f11190
@ -146,7 +146,7 @@ typedef struct QuicData {
|
||||
jmp_buf jmp_env;
|
||||
char message_buf[512];
|
||||
SpiceChunks *chunks;
|
||||
int current_chunk;
|
||||
uint32_t current_chunk;
|
||||
} QuicData;
|
||||
|
||||
typedef struct CanvasBase {
|
||||
@ -809,8 +809,8 @@ static pixman_image_t *canvas_get_lz(CanvasBase *canvas, SpiceImage *image, int
|
||||
CANVAS_ERROR("unexpected LZ image type");
|
||||
}
|
||||
|
||||
ASSERT(width == image->descriptor.width);
|
||||
ASSERT(height == image->descriptor.height);
|
||||
ASSERT((unsigned)width == image->descriptor.width);
|
||||
ASSERT((unsigned)height == image->descriptor.height);
|
||||
|
||||
ASSERT((image->descriptor.type == SPICE_IMAGE_TYPE_LZ_PLT) || (n_comp_pixels == width * height));
|
||||
#ifdef WIN32
|
||||
@ -3309,7 +3309,7 @@ static void unimplemented_op(SpiceCanvas *canvas)
|
||||
inline static void canvas_base_init_ops(SpiceCanvasOps *ops)
|
||||
{
|
||||
void **ops_cast;
|
||||
int i;
|
||||
unsigned i;
|
||||
|
||||
ops_cast = (void **)ops;
|
||||
for (i = 0; i < sizeof(SpiceCanvasOps) / sizeof(void *); i++) {
|
||||
|
||||
2
lz.c
2
lz.c
@ -633,7 +633,7 @@ void lz_decode(LzContext *lz, LzImageType to_type, uint8_t *buf)
|
||||
Encoder *encoder = (Encoder *)lz;
|
||||
size_t out_size = 0;
|
||||
size_t alpha_size = 0;
|
||||
int size = 0;
|
||||
size_t size = 0;
|
||||
if (IS_IMAGE_TYPE_PLT[encoder->type]) {
|
||||
if (to_type == encoder->type) {
|
||||
size = encoder->height * encoder->stride;
|
||||
|
||||
@ -976,8 +976,8 @@ static void canvas_put_image(SpiceCanvas *spice_canvas,
|
||||
{
|
||||
SwCanvas *canvas = (SwCanvas *)spice_canvas;
|
||||
pixman_image_t *src;
|
||||
int dest_width;
|
||||
int dest_height;
|
||||
uint32_t dest_width;
|
||||
uint32_t dest_height;
|
||||
double sx, sy;
|
||||
pixman_transform_t transform;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user