fix platform dependent thing

This commit is contained in:
Tianqi Chen
2015-04-25 20:40:43 -07:00
parent 84515cd2a8
commit afdebe8d8f
4 changed files with 8 additions and 7 deletions

View File

@@ -372,7 +372,7 @@ class GBTree : public IGradBooster {
#pragma omp parallel for schedule(static)
for (bst_omp_uint i = 0; i < nsize; ++i) {
const int tid = omp_get_thread_num();
int64_t ridx = static_cast<int64_t>(batch.base_rowid + i);
size_t ridx = static_cast<size_t>(batch.base_rowid + i);
tree::RegTree::FVec &feats = thread_temp[tid];
feats.Fill(batch[i]);
for (unsigned j = 0; j < ntree_limit; ++j) {