Fix build warning
This commit is contained in:
parent
21eef55907
commit
8fc77a4365
|
@ -8,7 +8,9 @@ int main() {
|
|||
if( ! pj.isValid() ) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
pj.allocateCapacity(p.size());
|
||||
if( ! pj.allocateCapacity(p.size()) ) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
const int res = json_parse(p, pj);
|
||||
if (res) {
|
||||
std::cerr << simdjson::errorMsg(res) << std::endl;
|
||||
|
|
Loading…
Reference in New Issue