[mutter] cogl: Fix signage miss match warnings



commit bdc68efe45efb6ef6b339f2263b237c93fbe9be9
Author: Jonas Ådahl <jadahl gmail com>
Date:   Thu May 5 22:26:10 2016 +0800

    cogl: Fix signage miss match warnings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768976

 cogl/cogl/cogl-bitmask.h |    2 +-
 cogl/cogl/cogl-util.h    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cogl/cogl/cogl-bitmask.h b/cogl/cogl/cogl-bitmask.h
index e0db3df..35fc441 100644
--- a/cogl/cogl/cogl-bitmask.h
+++ b/cogl/cogl/cogl-bitmask.h
@@ -300,7 +300,7 @@ _cogl_bitmask_popcount_upto (const CoglBitmask *bitmask,
 {
   if (_cogl_bitmask_has_array (bitmask))
     return _cogl_bitmask_popcount_upto_in_array (bitmask, upto);
-  else if (upto >= COGL_BITMASK_MAX_DIRECT_BITS)
+  else if (upto >= (int) COGL_BITMASK_MAX_DIRECT_BITS)
     return _cogl_util_popcountl (_cogl_bitmask_to_bits (bitmask));
   else
     return _cogl_util_popcountl (_cogl_bitmask_to_bits (bitmask) &
diff --git a/cogl/cogl/cogl-util.h b/cogl/cogl/cogl-util.h
index 3be71af..42651c7 100644
--- a/cogl/cogl/cogl-util.h
+++ b/cogl/cogl/cogl-util.h
@@ -112,7 +112,7 @@ _cogl_util_one_at_a_time_hash (unsigned int hash,
                                size_t bytes)
 {
   const unsigned char *p = key;
-  int i;
+  size_t i;
 
   for (i = 0; i < bytes; i++)
     {


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