diff options
Diffstat (limited to '')
| -rw-r--r-- | lua_cjson.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua_cjson.c b/lua_cjson.c index ca85156..708e695 100644 --- a/lua_cjson.c +++ b/lua_cjson.c | |||
| @@ -332,7 +332,7 @@ static void json_enum_option(lua_State *l, const char **options, | |||
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | 334 | ||
| 335 | /* When enabled, rejects: NaN, Infinity, hexidecimal numbers */ | 335 | /* When enabled, rejects: NaN, Infinity, hexadecimal numbers */ |
| 336 | static int json_cfg_refuse_invalid_numbers(lua_State *l) | 336 | static int json_cfg_refuse_invalid_numbers(lua_State *l) |
| 337 | { | 337 | { |
| 338 | static const char *options_enc_dec[] = { "none", "encode", "decode", | 338 | static const char *options_enc_dec[] = { "none", "encode", "decode", |
| @@ -929,7 +929,7 @@ static void json_next_string_token(json_parse_t *json, json_token_t *token) | |||
| 929 | * json_next_number_token() uses strtod() which allows other forms: | 929 | * json_next_number_token() uses strtod() which allows other forms: |
| 930 | * - numbers starting with '+' | 930 | * - numbers starting with '+' |
| 931 | * - NaN, -NaN, infinity, -infinity | 931 | * - NaN, -NaN, infinity, -infinity |
| 932 | * - hexidecimal numbers | 932 | * - hexadecimal numbers |
| 933 | * - numbers with leading zeros | 933 | * - numbers with leading zeros |
| 934 | * | 934 | * |
| 935 | * json_is_invalid_number() detects "numbers" which may pass strtod()'s | 935 | * json_is_invalid_number() detects "numbers" which may pass strtod()'s |
