[FIX] fix plugin system

This commit is contained in:
tqchen
2016-01-16 10:25:11 -08:00
parent 96f4542a67
commit 31d8e93ef3
6 changed files with 11 additions and 11 deletions
+2 -1
View File
@@ -658,7 +658,8 @@ class QuantileSketchTemplate {
CHECK_EQ(fi.Read(&this->size, sizeof(this->size)), sizeof(this->size));
this->Reserve(this->size);
if (this->size != 0) {
CHECK_EQ(fi.Read(this->data, this->size * sizeof(Entry)), sizeof(this->size));
CHECK_EQ(fi.Read(this->data, this->size * sizeof(Entry)),
this->size * sizeof(Entry));
}
}
};