From dfb6f7c2d9637f5a60f1300e7528dc13565208c2 Mon Sep 17 00:00:00 2001 From: nojhan Date: Sat, 22 Jan 2022 18:40:02 +0100 Subject: [PATCH] fix warning on signedess of comparison --- eo/src/eoProportionalSelect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo/src/eoProportionalSelect.h b/eo/src/eoProportionalSelect.h index 7f10d53dc..65188bfe4 100644 --- a/eo/src/eoProportionalSelect.h +++ b/eo/src/eoProportionalSelect.h @@ -95,7 +95,7 @@ public: // assert(fortune <= cumulative.back()); - if(result - cumulative.begin() >= _pop.size()) { + if(static_cast(result - cumulative.begin()) >= _pop.size()) { return _pop.back(); } else { return _pop[result - cumulative.begin()];