summaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index cb6789643d3..5eb245e5376 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1592,7 +1592,7 @@ get_dispatch_vector (tree type)
{
tree method_index = get_method_index (method);
if (method_index != NULL_TREE
- && host_integerp (method_index, 0))
+ && tree_fits_shwi_p (method_index))
TREE_VEC_ELT (vtable, tree_low_cst (method_index, 0)) = method;
}
}