From 6b5a23ccd53960686e6084bcd722bec157883b98 Mon Sep 17 00:00:00 2001 From: wl2776 Date: Thu, 10 Nov 2016 23:34:30 +0300 Subject: [PATCH] fix build in MSVC 2013 (#1757) --- src/c_api/c_api.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c_api/c_api.cc b/src/c_api/c_api.cc index b118c8f20..4b7092fa2 100644 --- a/src/c_api/c_api.cc +++ b/src/c_api/c_api.cc @@ -682,7 +682,7 @@ XGB_DLL int XGBoosterDumpModel(BoosterHandle handle, int with_stats, xgboost::bst_ulong* len, const char*** out_models) { - XGBoosterDumpModelEx(handle, fmap, with_stats, "text", len, out_models); + return XGBoosterDumpModelEx(handle, fmap, with_stats, "text", len, out_models); } XGB_DLL int XGBoosterDumpModelEx(BoosterHandle handle, const char* fmap, @@ -709,7 +709,7 @@ XGB_DLL int XGBoosterDumpModelWithFeatures(BoosterHandle handle, int with_stats, xgboost::bst_ulong* len, const char*** out_models) { - XGBoosterDumpModelExWithFeatures(handle, fnum, fname, ftype, with_stats, + return XGBoosterDumpModelExWithFeatures(handle, fnum, fname, ftype, with_stats, "text", len, out_models); } XGB_DLL int XGBoosterDumpModelExWithFeatures(BoosterHandle handle,