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
2b18b44f
Commit
2b18b44f
authored
Apr 10, 2017
by
Guolin Ke
Browse files
fix bug for large line in text_reader .
parent
102dc5fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/LightGBM/utils/text_reader.h
include/LightGBM/utils/text_reader.h
+2
-2
No files found.
include/LightGBM/utils/text_reader.h
View file @
2b18b44f
...
@@ -123,7 +123,7 @@ public:
...
@@ -123,7 +123,7 @@ public:
}
}
}
}
if
(
last_i
!=
read_cnt
)
{
if
(
last_i
!=
read_cnt
)
{
last_line_
=
std
::
string
(
buffer_process
+
last_i
,
read_cnt
-
last_i
);
last_line_
.
append
(
buffer_process
+
last_i
,
read_cnt
-
last_i
);
}
}
return
cnt
;
return
cnt
;
});
});
...
@@ -260,7 +260,7 @@ public:
...
@@ -260,7 +260,7 @@ public:
process_fun
(
start_idx
,
lines_
);
process_fun
(
start_idx
,
lines_
);
lines_
.
clear
();
lines_
.
clear
();
if
(
last_i
!=
read_cnt
)
{
if
(
last_i
!=
read_cnt
)
{
last_line_
=
std
::
string
(
buffer_process
+
last_i
,
read_cnt
-
last_i
);
last_line_
.
append
(
buffer_process
+
last_i
,
read_cnt
-
last_i
);
}
}
return
cnt
;
return
cnt
;
});
});
...
...
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