fix signed unsigned comparison
authorfabien.lementec <fabien.lementec@gmail.com>
Mon, 1 Feb 2016 16:02:55 +0000 (17:02 +0100)
committerfabien.lementec <fabien.lementec@gmail.com>
Mon, 1 Feb 2016 16:02:55 +0000 (17:02 +0100)
gdbserver/gdb-server.c

index 1fe076eecea838634618b97d1ad366e4492fc171..c8152118b0db5908dc742959c11d7d610b4a605a 100644 (file)
@@ -812,7 +812,7 @@ static struct cache_desc_t cache_desc;
 static unsigned ceil_log2(unsigned v)
 {
   unsigned res;
-  for (res = 0; (1 << res) < v; res++)
+  for (res = 0; (1U << res) < v; res++)
     ;
   return res;
 }