From 5693aed09427b490d0fb9f17d8b04fecf81d92bd Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 27 Jul 2016 10:33:02 +0000 Subject: [PATCH] predict.c (set_even_probabilities): Make nedges unsigned. 2016-07-27 Richard Biener * predict.c (set_even_probabilities): Make nedges unsigned. From-SVN: r238782 --- gcc/ChangeLog | 4 ++++ gcc/predict.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4169007115a..e5aa7c76f8a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-07-27 Richard Biener + + * predict.c (set_even_probabilities): Make nedges unsigned. + 2016-07-27 Martin Liska * predict.c (set_even_probabilities): Handle unlikely edges. diff --git a/gcc/predict.c b/gcc/predict.c index ca320cde68d..c1dbb96b8c5 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -793,7 +793,7 @@ static void set_even_probabilities (basic_block bb, hash_set *unlikely_edges = NULL) { - int nedges = 0; + unsigned nedges = 0; edge e; edge_iterator ei; -- 2.30.2