From 1699d4f5d77fd0b7fbdedeca7f7bb40064b035b1 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 18 Sep 2011 21:11:20 -0400 Subject: [PATCH] Minor change to avoid a compiler warning from gcc. --- dlib/statistics/statistics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/statistics/statistics.h b/dlib/statistics/statistics.h index 4402ed790..311a12f89 100644 --- a/dlib/statistics/statistics.h +++ b/dlib/statistics/statistics.h @@ -406,8 +406,8 @@ namespace dlib double temp = 0; for (unsigned long i = 0; i < a.size(); ++i) { - if (a[i] >= 0 && b[i] >= 0 || - a[i] < 0 && b[i] < 0) + if ((a[i] >= 0 && b[i] >= 0) || + (a[i] < 0 && b[i] < 0)) { temp += 1; }