Merge branch 'master' of https://github.com/lemire/simdjson
This commit is contained in:
commit
527ee8eace
|
@ -1,4 +1,4 @@
|
||||||
/* auto-generated on Fri 22 Feb 2019 15:42:34 EST. Do not edit! */
|
/* auto-generated on Fri 22 Feb 2019 19:16:31 EST. Do not edit! */
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "simdjson.h"
|
#include "simdjson.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* auto-generated on Fri 22 Feb 2019 15:42:34 EST. Do not edit! */
|
/* auto-generated on Fri 22 Feb 2019 19:16:31 EST. Do not edit! */
|
||||||
#include "simdjson.h"
|
#include "simdjson.h"
|
||||||
|
|
||||||
/* used for http://dmalloc.com/ Dmalloc - Debug Malloc Library */
|
/* used for http://dmalloc.com/ Dmalloc - Debug Malloc Library */
|
||||||
|
@ -797,6 +797,10 @@ WARN_UNUSED
|
||||||
base = next_base;
|
base = next_base;
|
||||||
|
|
||||||
pj.n_structural_indexes = base;
|
pj.n_structural_indexes = base;
|
||||||
|
// a valid JSON file cannot have zero structural indexes - we should have found something
|
||||||
|
if (!pj.n_structural_indexes) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(base_ptr[pj.n_structural_indexes-1] > len) {
|
if(base_ptr[pj.n_structural_indexes-1] > len) {
|
||||||
fprintf( stderr,"Internal bug\n");
|
fprintf( stderr,"Internal bug\n");
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* auto-generated on Fri 22 Feb 2019 15:42:34 EST. Do not edit! */
|
/* auto-generated on Fri 22 Feb 2019 19:16:31 EST. Do not edit! */
|
||||||
/* begin file /Users/lemire/CVS/github/simdjson/include/simdjson/portability.h */
|
/* begin file /Users/lemire/CVS/github/simdjson/include/simdjson/portability.h */
|
||||||
#ifndef SIMDJSON_PORTABILITY_H
|
#ifndef SIMDJSON_PORTABILITY_H
|
||||||
#define SIMDJSON_PORTABILITY_H
|
#define SIMDJSON_PORTABILITY_H
|
||||||
|
|
Loading…
Reference in New Issue