aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r--gcc/cp/cvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c
index 5a6584d..ede4770 100644
--- a/gcc/cp/cvt.c
+++ b/gcc/cp/cvt.c
@@ -264,12 +264,12 @@ cp_convert_to_pointer (tree type, tree expr, bool force)
{
/* A NULL pointer-to-member is represented by -1, not by
zero. */
- expr = build_int_cst (type, -1, -1);
+ expr = build_int_cst (type, -1);
/* Fix up the representation of -1 if appropriate. */
expr = force_fit_type (expr, 0, false, false);
}
else
- expr = build_int_cst (type, 0, 0);
+ expr = build_int_cst (type, 0);
return expr;
}