Minor change to avoid a compiler warning from gcc.

This commit is contained in:
Davis King 2011-09-18 21:11:20 -04:00
parent 16ad7a7a3c
commit 1699d4f5d7
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}