aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index a1270ac..459c174 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -346,8 +346,7 @@ get_dynamic_cast_base_type (tree subtype, tree target)
if (!boff)
return offset;
- offset = build_int_2 (boff, -1);
- TREE_TYPE (offset) = ssizetype;
+ offset = build_int_cst (ssizetype, boff, -1);
return offset;
}