|
|
fce154 |
From a40ecb73678a1d35348c19c7ba8a69b987b410e4 Mon Sep 17 00:00:00 2001
|
|
|
fce154 |
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
|
|
|
fce154 |
Date: Mon, 1 Sep 2014 13:42:48 +0200
|
|
|
fce154 |
Subject: [PATCH] Fix -Wsign
|
|
|
fce154 |
|
|
|
fce154 |
(cherry picked from commit 08b3e1d8f187fb371d9ade2f69670378e3e409f5)
|
|
|
fce154 |
---
|
|
|
fce154 |
server/tests/test_display_base.c | 4 ++--
|
|
|
fce154 |
server/tests/test_playback.c | 2 +-
|
|
|
fce154 |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
fce154 |
|
|
|
fce154 |
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
|
|
|
fce154 |
index 602691b..6765a07 100644
|
|
|
fce154 |
--- a/server/tests/test_display_base.c
|
|
|
fce154 |
+++ b/server/tests/test_display_base.c
|
|
|
fce154 |
@@ -215,7 +215,7 @@ static SimpleSpiceUpdate *test_spice_create_update_solid(uint32_t surface_id, QX
|
|
|
fce154 |
uint32_t *dst;
|
|
|
fce154 |
uint32_t bw;
|
|
|
fce154 |
uint32_t bh;
|
|
|
fce154 |
- int i;
|
|
|
fce154 |
+ uint32_t i;
|
|
|
fce154 |
|
|
|
fce154 |
bw = bbox.right - bbox.left;
|
|
|
fce154 |
bh = bbox.bottom - bbox.top;
|
|
|
fce154 |
@@ -451,7 +451,7 @@ struct QXLCommandExt* commands[1024];
|
|
|
fce154 |
|
|
|
fce154 |
static void push_command(QXLCommandExt *ext)
|
|
|
fce154 |
{
|
|
|
fce154 |
- ASSERT(commands_end - commands_start < COMMANDS_SIZE);
|
|
|
fce154 |
+ ASSERT(commands_end - commands_start < (int) COMMANDS_SIZE);
|
|
|
fce154 |
commands[commands_end % COMMANDS_SIZE] = ext;
|
|
|
fce154 |
commands_end++;
|
|
|
fce154 |
}
|
|
|
fce154 |
diff --git a/server/tests/test_playback.c b/server/tests/test_playback.c
|
|
|
fce154 |
index 1e82c43..f712f7b 100644
|
|
|
fce154 |
--- a/server/tests/test_playback.c
|
|
|
fce154 |
+++ b/server/tests/test_playback.c
|
|
|
fce154 |
@@ -50,7 +50,7 @@ void playback_timer_cb(SPICE_GNUC_UNUSED void *opaque)
|
|
|
fce154 |
static int t = 0;
|
|
|
fce154 |
static uint64_t last_sent_usec = 0;
|
|
|
fce154 |
static uint64_t samples_to_send;
|
|
|
fce154 |
- int i;
|
|
|
fce154 |
+ uint32_t i;
|
|
|
fce154 |
struct timeval cur;
|
|
|
fce154 |
uint64_t cur_usec;
|
|
|
fce154 |
uint32_t *test_frame;
|