(lookup_field): Use HOST_WIDE_INT instead of long or int when we want

integer wide enough to hold a pointer difference.

From-SVN: r5345
This commit is contained in:
Richard Kenner 1993-09-17 18:08:22 -04:00
parent 72db60c6d5
commit c1719013cf
1 changed files with 2 additions and 2 deletions

View File

@ -1056,7 +1056,7 @@ lookup_field (type, component)
top = TYPE_LANG_SPECIFIC (type)->len;
while (top - bot > 1)
{
int cmp;
HOST_WIDE_INT cmp;
half = (top - bot + 1) >> 1;
field = field_array[bot+half];
@ -1081,7 +1081,7 @@ lookup_field (type, component)
continue;
}
cmp = (long)DECL_NAME (field) - (long)component;
cmp = (HOST_WIDE_INT) DECL_NAME (field) - (HOST_WIDE_INT) component;
if (cmp == 0)
break;
if (cmp < 0)