small changes with default values

This commit is contained in:
Niels committed 2015-02-07 19:04:08 +01:00
1 parent c1c3e72c96
commit cc274f8145
2 files changed
+40 -44

No files matched your search

+8 -7
View File
@@ -2548,13 +2548,14 @@ class basic_json
case (token_type::value_number):
{
// The pointer current_re2c points to the beginning of the parsed
// number. We pass this pointer to std::strtod which sets endptr
// to the first character past the converted number. If this pointer
// is not the same as buffer_re2c, then either more or less
// characters have been used during the comparison. This can happen
// for inputs like "01" which will be treated like number 0 followed
// by number 1.
// The pointer current_re2c points to the beginning of the
// parsed number. We pass this pointer to std::strtod which
// sets endptr to the first character past the converted
// number. If this pointer is not the same as buffer_re2c,
// then either more or less characters have been used
// during the comparison. This can happen for inputs like
// "01" which will be treated like number 0 followed by
// number 1.
// conversion
char* endptr;