call.c (strictly_better): Make arguments unsigned ints.
authorJeffrey A Law <law@cygnus.com>
Sat, 23 Aug 1997 23:47:00 +0000 (23:47 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 23 Aug 1997 23:47:00 +0000 (17:47 -0600)
        * call.c (strictly_better): Make arguments unsigned ints.
Fixes bug reported by Peter Seebach.

From-SVN: r14909

gcc/cp/ChangeLog
gcc/cp/call.c

index 0d346c3b7a87a1376cddfb0ddd3020f0825e01c4..01ac302dd609c729bd14428bacfb2c03f3bc72af 100644 (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.
index cdec02df92d6be48db516b5fe3dfc99b360c8f6c..c26006aaa7887b789fa649f9f650dea34711dc3f 100644 (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;