From 0f410ac54abfb00dc3d0ec4afe636741123d6f4a Mon Sep 17 00:00:00 2001 From: tqchen Date: Sat, 1 Mar 2014 21:29:07 -0800 Subject: [PATCH] fix type --- booster/tree/xgboost_col_treemaker.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booster/tree/xgboost_col_treemaker.hpp b/booster/tree/xgboost_col_treemaker.hpp index b1b449944..4ec86caee 100644 --- a/booster/tree/xgboost_col_treemaker.hpp +++ b/booster/tree/xgboost_col_treemaker.hpp @@ -223,7 +223,7 @@ namespace xgboost{ } while( it.Next() ){ - const unsigned ridx = it.rindex(); + const bst_uint ridx = it.rindex(); const int nid = position[ ridx ]; if( nid < 0 ) continue; @@ -336,7 +336,7 @@ namespace xgboost{ for( unsigned i = 0; i < nfeats; ++ i ){ const unsigned fid = fsplits[i]; for( typename FMatrix::ColIter it = smat.GetSortedCol( fid ); it.Next(); ){ - const unsigned ridx = it.rindex(); + const bst_uint ridx = it.rindex(); int nid = position[ ridx ]; if( nid == -1 ) continue; // go back to parent, correct those who are not default