fix windows warnings

This commit is contained in:
Tianqi Chen
2015-04-19 00:20:52 -07:00
parent 9527b55f35
commit 18277086d9
5 changed files with 16 additions and 14 deletions

View File

@@ -130,7 +130,7 @@ struct EvalMClassBase : public IEvaluator {
const float wt = info.GetWeight(i);
int label = static_cast<int>(info.labels[i]);
if (label >= 0 && label < static_cast<int>(nclass)) {
sum += Derived::EvalRow(info.labels[i],
sum += Derived::EvalRow(label,
BeginPtr(preds) + i * nclass,
nclass) * wt;
wsum += wt;