summaryrefslogtreecommitdiffstats
path: root/common/canvas_base.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-12-06 17:55:16 +0200
committerAlon Levy <alevy@redhat.com>2010-12-08 17:11:45 +0200
commit06749bd66bb3e689bc96be1a3739747912ee0020 (patch)
treedf26e6897c54367f176d3bdeff757896c090a9d5 /common/canvas_base.c
parent2cd07dd8f3dd9bf34b1725bb015aecefc93b3454 (diff)
downloadspice-06749bd66bb3e689bc96be1a3739747912ee0020.tar.gz
spice-06749bd66bb3e689bc96be1a3739747912ee0020.tar.xz
spice-06749bd66bb3e689bc96be1a3739747912ee0020.zip
mingw32 build: fix signed/unsigned warnings as errors
Diffstat (limited to 'common/canvas_base.c')
-rw-r--r--common/canvas_base.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c
index c2763bcc..6d101f49 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -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++) {