From 6563aa6e7aa99e8f0fb71755cebacf83eb3eda58 Mon Sep 17 00:00:00 2001 From: paradiseo Date: Tue, 27 Jan 2009 16:21:53 +0000 Subject: [PATCH] little modif to delete warning --- eo/app/gprop/gprop.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eo/app/gprop/gprop.h b/eo/app/gprop/gprop.h index 11bf684b5..989041863 100644 --- a/eo/app/gprop/gprop.h +++ b/eo/app/gprop/gprop.h @@ -52,7 +52,7 @@ struct phenotype friend bool operator<(const phenotype& a, const phenotype& b) { - return (a.val_ok < b.val_ok) || (!(b.val_ok < a.val_ok)) && (b.mse_error < a.mse_error); + return (a.val_ok < b.val_ok) || ((!(b.val_ok < a.val_ok)) && (b.mse_error < a.mse_error)); } friend bool operator==(const phenotype& a, const phenotype& b) @@ -207,8 +207,8 @@ int correct(const mlp::net& net, const mlp::set& set) unsigned partial = 0; for (unsigned i = 0; i < s->output.size(); ++i) - if (s->output[i] < 0.5 && net(s->input)[i] < 0.5 || - s->output[i] > 0.5 && net(s->input)[i] > 0.5) + if ((s->output[i] < 0.5 && net(s->input)[i] < 0.5) || + (s->output[i] > 0.5 && net(s->input)[i] > 0.5)) ++partial; if (partial == s->output.size())