Silencing warning.
This commit is contained in:
parent
b4fc981447
commit
d2258994e3
2
main.cpp
2
main.cpp
|
@ -283,7 +283,6 @@ const u32 ROOT_NODE = 1;
|
||||||
// that's all; the type of character the offset points to will
|
// that's all; the type of character the offset points to will
|
||||||
// tell us exactly what we need to know. Naive but straightforward implementation
|
// tell us exactly what we need to know. Naive but straightforward implementation
|
||||||
never_inline bool flatten_indexes(size_t len, ParsedJson & pj) {
|
never_inline bool flatten_indexes(size_t len, ParsedJson & pj) {
|
||||||
u32 base = NUM_RESERVED_NODES;
|
|
||||||
u32 * base_ptr = pj.structural_indexes;
|
u32 * base_ptr = pj.structural_indexes;
|
||||||
base_ptr[DUMMY_NODE] = base_ptr[ROOT_NODE] = 0; // really shouldn't matter
|
base_ptr[DUMMY_NODE] = base_ptr[ROOT_NODE] = 0; // really shouldn't matter
|
||||||
#ifdef VECDECODE
|
#ifdef VECDECODE
|
||||||
|
@ -292,6 +291,7 @@ never_inline bool flatten_indexes(size_t len, ParsedJson & pj) {
|
||||||
base_ptr[pj.n_structural_indexes] = 0; // make it safe to dereference one beyond this array
|
base_ptr[pj.n_structural_indexes] = 0; // make it safe to dereference one beyond this array
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
|
u32 base = NUM_RESERVED_NODES;
|
||||||
for (size_t idx = 0; idx < len; idx+=64) {
|
for (size_t idx = 0; idx < len; idx+=64) {
|
||||||
u64 s = *(u64 *)(pj.structurals + idx/8);
|
u64 s = *(u64 *)(pj.structurals + idx/8);
|
||||||
#ifdef SUPPRESS_CHEESY_FLATTEN
|
#ifdef SUPPRESS_CHEESY_FLATTEN
|
||||||
|
|
Loading…
Reference in New Issue