Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
f5df1df3
Unverified
Commit
f5df1df3
authored
Nov 30, 2019
by
Nikita Titov
Committed by
GitHub
Nov 30, 2019
Browse files
fix compile warning for HDFS version (#2586)
* fix compile warning for HDFS version * cast to size_t
parent
b3975555
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/io/file_io.cpp
src/io/file_io.cpp
+2
-1
No files found.
src/io/file_io.cpp
View file @
f5df1df3
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment