This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix signed/unsigned warning in predict.c
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 Jul 2016 12:33:23 +0200 (CEST)
- Subject: [PATCH] Fix signed/unsigned warning in predict.c
- Authentication-results: sourceware.org; auth=none
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;