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 { ...@@ -55,9 +55,10 @@ struct LocalFile : VirtualFileReader, VirtualFileWriter {
}; };
const char* kHdfsProto = "hdfs://"; const char* kHdfsProto = "hdfs://";
const size_t kHdfsProtoLength = strlen(kHdfsProto);
#ifdef USE_HDFS #ifdef USE_HDFS
const size_t kHdfsProtoLength = static_cast<size_t>(strlen(kHdfsProto));
struct HDFSFile : VirtualFileReader, VirtualFileWriter { struct HDFSFile : VirtualFileReader, VirtualFileWriter {
HDFSFile(const std::string& filename, int flags) : filename_(filename), flags_(flags) {} HDFSFile(const std::string& filename, int flags) : filename_(filename), flags_(flags) {}
~HDFSFile() { ~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