Permalink
Browse files

0 need not be cast to (int)

  • Loading branch information...
1 parent 0cc333e commit fb20fdcc3d4f5ebd58b8fbe6bbd82d3f78844975 @petdance petdance committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compilers/imcc/reg_alloc.c
@@ -621,7 +621,7 @@ first_avail(ARGMOD(imc_info_t * imcc), ARGIN(const IMC_Unit *unit), int reg_set,
for (r = hsh->data[i]; r; r = r->next) {
if (r->set == reg_set)
if (REG_NEEDS_ALLOC(r))
- if (r->color >= (int)0)
+ if (r->color >= 0)
set_add(allocated, (unsigned int)r->color);
}
}

0 comments on commit fb20fdc

Please sign in to comment.