Fix condition in ParsedJson::allocate_capacity(). (#283)
This commit is contained in:
parent
c8d50a6060
commit
e9be643db5
|
@ -36,7 +36,7 @@ bool ParsedJson::allocate_capacity(size_t len, size_t max_depth) {
|
|||
if (len > SIMDJSON_MAXSIZE_BYTES) {
|
||||
return false;
|
||||
}
|
||||
if ((len <= byte_capacity) && (depth_capacity < max_depth)) {
|
||||
if ((len <= byte_capacity) && (max_depth <= depth_capacity)) {
|
||||
return true;
|
||||
}
|
||||
deallocate();
|
||||
|
|
Loading…
Reference in New Issue