From 2ee2684be452130258bb5040819a2be04a795629 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Tue, 11 Apr 2006 09:05:28 +0000 Subject: [PATCH] made cnt_to_int unsigned [r7618] --- ir/stat/counter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/stat/counter.h b/ir/stat/counter.h index 840ace330..e804d9a89 100644 --- a/ir/stat/counter.h +++ b/ir/stat/counter.h @@ -140,13 +140,13 @@ static INLINE double cnt_to_dbl(const counter_t *a) /** * convert a counter into an int */ -static INLINE int cnt_to_int(const counter_t *a) +static INLINE unsigned cnt_to_int(const counter_t *a) { int i; for (i = 1; i < STAT_CNT_NUM; ++i) if (a->cnt[i]) - return INT_MAX; + return UINT_MAX; return a->cnt[0]; } -- 2.20.1