summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belistsched.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2011-02-06 19:36:17 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2011-02-06 19:36:17 +0100
commit16fc4cdb8f7bc9d203f4e024d0bad50f79867c4f (patch)
treeb250f26f3043a3726e6bde3eaf24d988147bccc7 /ir/be/belistsched.c
parent6318fb449bbaf3c689b55dd4a3e9f978d241d7a1 (diff)
Fix several size_t related signed/unsigned warnings.
[r28330]
Diffstat (limited to 'ir/be/belistsched.c')
-rw-r--r--ir/be/belistsched.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ir/be/belistsched.c b/ir/be/belistsched.c
index 2bd5147..cc7a0f0 100644
--- a/ir/be/belistsched.c
+++ b/ir/be/belistsched.c
@@ -159,7 +159,7 @@ typedef struct block_sched_env_t {
*/
static inline int is_already_scheduled(block_sched_env_t *env, ir_node *n)
{
- int idx = get_irn_idx(n);
+ unsigned const idx = get_irn_idx(n);
assert(idx < ARR_LEN(env->sched_info));
return env->sched_info[idx].already_sched;
@@ -170,7 +170,7 @@ static inline int is_already_scheduled(block_sched_env_t *env, ir_node *n)
*/
static inline void set_already_scheduled(block_sched_env_t *env, ir_node *n)
{
- int idx = get_irn_idx(n);
+ unsigned const idx = get_irn_idx(n);
assert(idx < ARR_LEN(env->sched_info));
env->sched_info[idx].already_sched = 1;
@@ -264,7 +264,7 @@ static void make_users_ready(block_sched_env_t *env, ir_node *irn)
*/
static inline int get_irn_not_sched_user(block_sched_env_t *env, ir_node *n)
{
- int idx = get_irn_idx(n);
+ unsigned const idx = get_irn_idx(n);
assert(idx < ARR_LEN(env->sched_info));
return env->sched_info[idx].num_not_sched_user;
@@ -275,7 +275,7 @@ static inline int get_irn_not_sched_user(block_sched_env_t *env, ir_node *n)
*/
static inline void set_irn_not_sched_user(block_sched_env_t *env, ir_node *n, int num)
{
- int idx = get_irn_idx(n);
+ unsigned const idx = get_irn_idx(n);
assert(idx < ARR_LEN(env->sched_info));
env->sched_info[idx].num_not_sched_user = num;
@@ -286,7 +286,7 @@ static inline void set_irn_not_sched_user(block_sched_env_t *env, ir_node *n, in
*/
static inline int add_irn_not_sched_user(block_sched_env_t *env, ir_node *n, int num)
{
- int idx = get_irn_idx(n);
+ unsigned const idx = get_irn_idx(n);
assert(idx < ARR_LEN(env->sched_info));
env->sched_info[idx].num_not_sched_user += num;