aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-08-23 23:47:00 +0000
committerJeff Law <law@gcc.gnu.org>1997-08-23 17:47:00 -0600
commit4c9e597b51319955fdf1d71613874899cbdeb631 (patch)
tree293fbd5b4436b08d77cffa54bdae695336dc230e /gcc
parentb6ffe60242bddf106e906be802b5f739c266fc31 (diff)
downloadgcc-4c9e597b51319955fdf1d71613874899cbdeb631.zip
gcc-4c9e597b51319955fdf1d71613874899cbdeb631.tar.gz
gcc-4c9e597b51319955fdf1d71613874899cbdeb631.tar.bz2
call.c (strictly_better): Make arguments unsigned ints.
* call.c (strictly_better): Make arguments unsigned ints. Fixes bug reported by Peter Seebach. From-SVN: r14909
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/call.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 0d346c3..01ac302 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+Sat Aug 23 17:47:22 1997 Jeffrey A Law (law@cygnus.com)
+
+ * call.c (strictly_better): Make arguments unsigned ints.
+
Thu Aug 21 18:48:44 1997 Jason Merrill <jason@yorick.cygnus.com>
* lex.c (real_yylex): Refer to __complex instead of complex.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index cdec02d..c26006a 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -51,7 +51,7 @@ static tree build_new_method_call PROTO((tree, tree, tree, tree, int));
static int rank_for_ideal PROTO((struct candidate *,
struct candidate *));
static int user_harshness PROTO((tree, tree));
-static int strictly_better PROTO((unsigned short, unsigned short));
+static int strictly_better PROTO((unsigned int, unsigned int));
static struct candidate * ideal_candidate PROTO((struct candidate *,
int, int));
static int may_be_remote PROTO((tree));
@@ -1086,7 +1086,7 @@ compute_conversion_costs (function, tta_in, cp, arglen)
static int
strictly_better (x, y)
- unsigned short x, y;
+ unsigned int x, y;
{
unsigned short xor;