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
2d0e8fc9
Commit
2d0e8fc9
authored
Oct 20, 2016
by
Guolin Ke
Committed by
GitHub
Oct 20, 2016
Browse files
default to zero in Atof.
parent
44c201c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/LightGBM/utils/common.h
include/LightGBM/utils/common.h
+1
-1
No files found.
include/LightGBM/utils/common.h
View file @
2d0e8fc9
...
@@ -81,7 +81,7 @@ inline static const char* Atoi(const char* p, int* out) {
...
@@ -81,7 +81,7 @@ inline static const char* Atoi(const char* p, int* out) {
inline
static
const
char
*
Atof
(
const
char
*
p
,
double
*
out
)
{
inline
static
const
char
*
Atof
(
const
char
*
p
,
double
*
out
)
{
int
frac
;
int
frac
;
double
sign
,
value
,
scale
;
double
sign
,
value
,
scale
;
*
out
=
0
;
// Skip leading white space, if any.
// Skip leading white space, if any.
while
(
*
p
==
' '
)
{
while
(
*
p
==
' '
)
{
++
p
;
++
p
;
...
...
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