TYPE_ALIGN (itype) = TYPE_ALIGN (sizetype);
if (TREE_CODE (maxval) == INTEGER_CST)
{
- HOST_WIDE_INT maxint = TREE_INT_CST_LOW (maxval);
- return type_hash_canon (maxint > 0 ? maxint : - maxint, itype);
+ int maxint = (int) TREE_INT_CST_LOW (maxval);
+ return type_hash_canon (maxint < 0 ? ~maxint : maxint, itype);
}
else
return itype;
{
HOST_WIDE_INT highint = TREE_INT_CST_LOW (highval);
HOST_WIDE_INT lowint = TREE_INT_CST_LOW (lowval);
- HOST_WIDE_INT maxint = highint - lowint;
- return type_hash_canon (maxint > 0 ? maxint : - maxint, itype);
+ int maxint = (int) (highint - lowint);
+ return type_hash_canon (maxint < 0 ? ~maxint : maxint, itype);
}
else
return itype;