From 4c9e597b51319955fdf1d71613874899cbdeb631 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sat, 23 Aug 1997 23:47:00 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/call.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0d346c3b7a8..01ac302dd60 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 * lex.c (real_yylex): Refer to __complex instead of complex. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index cdec02df92d..c26006aaa78 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;