This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix signed/unsigned warning in predict.c


Bootstrapped on x86_64-unknown-linux-gnu, applied.

Richard.

2016-07-27  Richard Biener  <rguenther@suse.de>

	* predict.c (set_even_probabilities): Make nedges unsigned.

Index: gcc/predict.c
===================================================================
--- gcc/predict.c	(revision 238781)
+++ gcc/predict.c	(working copy)
@@ -793,7 +793,7 @@ static void
 set_even_probabilities (basic_block bb,
 			hash_set<edge> *unlikely_edges = NULL)
 {
-  int nedges = 0;
+  unsigned nedges = 0;
   edge e;
   edge_iterator ei;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]