From 83ca890c10b427736d801e67e934332a8dbd659b Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 13 Mar 2000 10:14:20 +0000 Subject: [PATCH] Changed some int into unsigned to avoid Gnu warnings --- eo/src/eoIndiSelector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eo/src/eoIndiSelector.h b/eo/src/eoIndiSelector.h index 5638f84a..a404f0d0 100644 --- a/eo/src/eoIndiSelector.h +++ b/eo/src/eoIndiSelector.h @@ -52,7 +52,7 @@ public : // this can be overridden in favour of a more efficient implementation vector result(_how_many); - for (int i = 0; i < _how_many; ++i) + for (unsigned i = 0; i < _how_many; ++i) { result[i] = &select(); } @@ -86,7 +86,7 @@ class eoPopIndiSelector : public eoIndiSelector pop = &_pop; last = _end; - if (last < 0 || last > pop->size()) + if (last < 0 || last > (int) pop->size()) { last = pop->size(); } @@ -106,7 +106,7 @@ class eoPopIndiSelector : public eoIndiSelector const EOT& select(void) { valid(); - if (firstChoice < 0 || firstChoice >= size()) + if (firstChoice < 0 || firstChoice >= (int) size()) { return do_select(); // let the child figure out what to do }