"src/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "0db573c30cdb049e82db1f3433f0b4064c761a31"
Commit 2d0e8fc9 authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

default to zero in Atof.

parent 44c201c4
......@@ -81,7 +81,7 @@ inline static const char* Atoi(const char* p, int* out) {
inline static const char* Atof(const char* p, double* out) {
int frac;
double sign, value, scale;
*out = 0;
// Skip leading white space, if any.
while (*p == ' ') {
++p;
......
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