fix compile under rtools

This commit is contained in:
Tianqi Chen
2014-08-26 09:09:28 -07:00
parent 5f6d5d19b8
commit b1bffde6c9
3 changed files with 9 additions and 5 deletions

View File

@@ -213,7 +213,7 @@ extern "C" {
&olen);
FILE *fo = utils::FopenCheck(CHAR(asChar(fname)), "w");
for (size_t i = 0; i < olen; ++i) {
fprintf(fo, "booster[%lu]:\n", i);
fprintf(fo, "booster[%u]:\n", static_cast<unsigned>(i));
fprintf(fo, "%s", res[i]);
}
fclose(fo);