Skip to content

Instantly share code, notes, and snippets.

@canatella
Created October 20, 2014 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canatella/621bc4d467f22e75bd1b to your computer and use it in GitHub Desktop.
Save canatella/621bc4d467f22e75bd1b to your computer and use it in GitHub Desktop.
diff --git a/json11.cpp b/json11.cpp
index 6424554..2e84c86 100644
--- a/json11.cpp
+++ b/json11.cpp
@@ -536,7 +536,7 @@ struct JsonParser {
i++;
}
- return std::atof(str.c_str() + start_pos);
+ return std::strtod(str.c_str() + start_pos, NULL);
}
/* expect(str, res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment