style fix

This commit is contained in:
yoori 2015-10-20 00:58:11 +04:00
parent 49c1cb6990
commit 981f06b9d1

View File

@ -388,7 +388,7 @@ class GBTree : public IGradBooster {
// init thread buffers // init thread buffers
inline void InitThreadTemp(int nthread) { inline void InitThreadTemp(int nthread) {
int prev_thread_temp_size = thread_temp.size(); int prev_thread_temp_size = thread_temp.size();
if(prev_thread_temp_size < nthread) { if (prev_thread_temp_size < nthread) {
thread_temp.resize(nthread, tree::RegTree::FVec()); thread_temp.resize(nthread, tree::RegTree::FVec());
for (int i = prev_thread_temp_size; i < nthread; ++i) { for (int i = prev_thread_temp_size; i < nthread; ++i) {
thread_temp[i].Init(mparam.num_feature); thread_temp[i].Init(mparam.num_feature);