convert bitfield initializer tarvals before using them
[libfirm] / ir / stat / counter.h
index 9bcbbaf..de401af 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -64,7 +64,7 @@ static INLINE void cnt_dec(counter_t *cnt)
        int i;
 
        for (i = 0; i < STAT_CNT_NUM; ++i) {
-               if (--cnt->cnt[i] != -1)
+               if (--cnt->cnt[i] != (unsigned) -1)
                        break;
        }
 }