"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "5970267460e6751ee8acac00140d92d3f1c02d9e"
Unverified Commit f5df1df3 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

fix compile warning for HDFS version (#2586)

* fix compile warning for HDFS version

* cast to size_t
parent b3975555
......@@ -55,9 +55,10 @@ struct LocalFile : VirtualFileReader, VirtualFileWriter {
};
const char* kHdfsProto = "hdfs://";
const size_t kHdfsProtoLength = strlen(kHdfsProto);
#ifdef USE_HDFS
const size_t kHdfsProtoLength = static_cast<size_t>(strlen(kHdfsProto));
struct HDFSFile : VirtualFileReader, VirtualFileWriter {
HDFSFile(const std::string& filename, int flags) : filename_(filename), flags_(flags) {}
~HDFSFile() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment