[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen: another unsigned comparison < 0



# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1302175080 -3600
# Node ID 5898b3639245bf924b9b7921a3c37f6480fc73f4
# Parent  712c8b8945843878847e4d9032bf3b13f2a44c75
xen: another unsigned comparison < 0

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>

diff -r 712c8b894584 -r 5898b3639245 xen/common/unxz.c
--- a/xen/common/unxz.c Thu Apr 07 11:39:35 2011 +0100
+++ b/xen/common/unxz.c Thu Apr 07 12:18:00 2011 +0100
@@ -216,7 +216,7 @@ STATIC int INIT unxz(unsigned char *in, 
                                b.in_pos = 0;
 
                                in_size = fill(in, XZ_IOBUF_SIZE);
-                               if (in_size < 0) {
+                               if ((int) in_size < 0) {
                                        /*
                                         * This isn't an optimal error code
                                         * but it probably isn't worth making

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.