minor shadow fix

This commit is contained in:
tqchen 2015-04-27 22:52:19 -07:00
parent 2eccdda3c5
commit e63faf0e85
3 changed files with 3 additions and 5 deletions

View File

@ -185,8 +185,8 @@ class DMatrixPageBase : public DataMatrix {
iter_->Load(utils::FileStream(utils::FopenCheck(fname_row.c_str(), "rb")));
// save data matrix
utils::FileStream fs(utils::FopenCheck(cache_file, "wb"));
int magic = kMagic;
fs.Write(&magic, sizeof(magic));
int tmagic = kMagic;
fs.Write(&tmagic, sizeof(tmagic));
this->info.SaveBinary(fs);
fs.Close();
if (!silent) {

View File

@ -235,9 +235,8 @@ class BoostLearner : public rabit::Serializable {
/*!
* \brief save model into file
* \param fname file name
* \param save_base64 whether save in base64 format
*/
inline void SaveModel(const char *fname, bool save_base64 = false) const {
inline void SaveModel(const char *fname) const {
utils::IStream *fo = utils::IStream::Create(fname, "w");
if (save_base64 != 0 || !strcmp(fname, "stdout")) {
fo->Write("bs64\t", 5);

View File

@ -237,7 +237,6 @@ class ColMaker: public IUpdater {
bool need_forward = param.need_forward_search(fmat.GetColDensity(fid));
bool need_backward = param.need_backward_search(fmat.GetColDensity(fid));
const std::vector<int> &qexpand = qexpand_;
int nthread;
#pragma omp parallel
{
const int tid = omp_get_thread_num();