WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xen: another unsigned comparison < 0
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 7 Apr 2011 12:25:40 +0100
Delivery-date: Thu, 07 Apr 2011 04:26:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.6.4
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen: another unsigned comparison < 0, Tim Deegan <=