fix compile, need final leaf node?

This commit is contained in:
tqchen
2014-11-15 21:02:19 -08:00
parent c86b83ea04
commit daa28f238e
2 changed files with 27 additions and 13 deletions

View File

@@ -258,7 +258,7 @@ struct WXQSummary : public WQSummary<DType, RType> {
return e.rmin_next() > e.rmax_prev() + chunk;
}
// set prune
inline void SetPrune(const WXQSummary &src, RType maxsize) {
inline void SetPrune(const WQSummary<DType, RType> &src, RType maxsize) {
if (src.size <= maxsize) {
this->CopyFrom(src); return;
}