-
-
Save canatella/621bc4d467f22e75bd1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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