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
fc789e04
Commit
fc789e04
authored
May 22, 2019
by
Nikita Titov
Committed by
Guolin Ke
May 22, 2019
Browse files
fixed cast error (#2186)
parent
6a1a538f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/io/file_io.cpp
src/io/file_io.cpp
+1
-1
No files found.
src/io/file_io.cpp
View file @
fc789e04
...
...
@@ -98,7 +98,7 @@ struct HDFSFile : VirtualFileReader, VirtualFileWriter {
template
<
typename
BufferType
>
inline
size_t
FileOperation
(
BufferType
data
,
size_t
bytes
,
fileOp
<
BufferType
>
op
)
const
{
char
*
buffer
=
reinterpret
_cast
<
char
*>
(
data
);
char
*
buffer
=
const_cast
<
char
*>
(
static
_cast
<
const
char
*>
(
data
)
)
;
size_t
remain
=
bytes
;
while
(
remain
!=
0
)
{
size_t
nmax
=
static_cast
<
size_t
>
(
std
::
numeric_limits
<
tSize
>::
max
());
...
...
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