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
This commit is contained in:
Jeffrey A Law 1997-08-23 23:47:00 +00:00 committed by Jeff Law
parent b6ffe60242
commit 4c9e597b51
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

@ -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;