From: Christophe de Dinechin <dinec...@redhat.com>

Signed-off-by: Christophe de Dinechin <dinec...@redhat.com>
---
 src/mjpeg-fallback.cpp        | 2 +-
 src/spice-streaming-agent.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mjpeg-fallback.cpp b/src/mjpeg-fallback.cpp
index fd37167..5758893 100644
--- a/src/mjpeg-fallback.cpp
+++ b/src/mjpeg-fallback.cpp
@@ -47,7 +47,7 @@ private:
     std::vector<uint8_t> frame;
 
     // last frame sizes
-    uint32_t last_width = ~0u, last_height = ~0u;
+    int last_width = ~0u, last_height = ~0u;
     // last time before capture
     uint64_t last_time = 0;
 };
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index 494cf8e..b17e27f 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -88,7 +88,7 @@ static void handle_stream_start_stop(uint32_t len)
                                  "(longer than " + std::to_string(sizeof(msg)) 
+ ")");
     }
     int n = read(streamfd, &msg, len);
-    if (n != len) {
+    if (n != (int) len) {
         throw std::runtime_error("read command from device FAILED -- read " + 
std::to_string(n) +
                                  " expected " + std::to_string(len));
     }
@@ -109,7 +109,7 @@ static void handle_stream_capabilities(uint32_t len)
         throw std::runtime_error("capability message too long");
     }
     int n = read(streamfd, caps, len);
-    if (n != len) {
+    if (n != (int) len) {
         throw std::runtime_error("read command from device FAILED -- read " + 
std::to_string(n) +
                                  " expected " + std::to_string(len));
     }
-- 
2.13.5 (Apple Git-94)

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to