diff options
Diffstat (limited to 'lua_cjson.c')
-rw-r--r-- | lua_cjson.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua_cjson.c b/lua_cjson.c index 076c56f..3868de3 100644 --- a/lua_cjson.c +++ b/lua_cjson.c | |||
@@ -522,7 +522,7 @@ static int lua_array_length(lua_State *l, json_config_t *cfg) | |||
522 | return -1; | 522 | return -1; |
523 | } | 523 | } |
524 | 524 | ||
525 | /* Encode very sparse arrays as objects (if enabled) */ | 525 | /* Encode excessively sparse arrays as objects (if enabled) */ |
526 | if (cfg->encode_sparse_ratio > 0 && | 526 | if (cfg->encode_sparse_ratio > 0 && |
527 | max > items * cfg->encode_sparse_ratio && | 527 | max > items * cfg->encode_sparse_ratio && |
528 | max > cfg->encode_sparse_safe) { | 528 | max > cfg->encode_sparse_safe) { |