From cebf88f39ec75118853c46f99ae879f3467d585a Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Fri, 30 Mar 2012 18:33:50 +0700 Subject: [PATCH] typedef error on mac --- mert/Optimizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mert/Optimizer.cpp b/mert/Optimizer.cpp index 2def21bb0..ec7db3996 100644 --- a/mert/Optimizer.cpp +++ b/mert/Optimizer.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include "Point.h" #include "Util.h" @@ -247,7 +248,7 @@ statscore_t Optimizer::LineOptimize(const Point& origin, const Point& direction, //enforce positivity Point respoint = origin + direction * thrit->first; bool is_valid = true; - for (uint k=0; k < respoint.getdim(); k++) { + for (unsigned int k=0; k < respoint.getdim(); k++) { if (positive[k] && respoint[k] <= 0.0) is_valid = false; }