# HG changeset patch
# User Barry Tannenbaum <barry.m.tannenbaum@intel.com>
# Date 1439905766 14400
#      Tue Aug 18 09:49:26 2015 -0400
# Node ID e709fde4ea980e68fbef13eb13cc690c5ecd46c5
# Parent  0ca389dfafa50191bbc43dac43d62f950c78e18f
Fix signed/unsigned mismatches

diff --git a/utils/lstopo/lstopo-ascii.c b/utils/lstopo/lstopo-ascii.c
--- a/utils/lstopo/lstopo-ascii.c
+++ b/utils/lstopo/lstopo-ascii.c
@@ -80,7 +80,7 @@
 {
   struct lstopo_ascii_output *disp = _output;
   unsigned width, height;
-  int j, i;
+  unsigned j, i;
 
   /* compute the required size */
   disp->drawing = 0;
@@ -344,13 +344,13 @@
   y2 = y1 + height - 1;
 
   if (!disp->drawing) {
-    if (x1 >= disp->width)
+    if ((int)x1 >= disp->width)
       disp->width = x1+1;
-    if (x2 >= disp->width)
+    if ((int)x2 >= disp->width)
       disp->width = x2+1;
-    if (y1 >= disp->height)
+    if ((int)y1 >= disp->height)
       disp->height = y1+1;
-    if (y2 >= disp->height)
+    if ((int)y2 >= disp->height)
       disp->height = y2+1;
     return;
   }
@@ -403,9 +403,9 @@
   }
 
   if (!disp->drawing) {
-    if (x2 >= disp->width)
+    if ((int)x2 >= disp->width)
       disp->width = x2+1;
-    if (y2 >= disp->height)
+    if ((int)y2 >= disp->height)
       disp->height = y2+1;
     return;
   }
