diff options
-rw-r--r-- | tanja.c | 2 | ||||
-rw-r--r-- | test/json.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -374,7 +374,7 @@ static inline void tn_map_grow(tn_el *m, int new) { return; int s = m->size; if(!s) - s = 32; + s = 16; while(s < ((m->count+new)*4)/3) s <<= 1; assert(s < UINT16_MAX); // Might want to handle this diff --git a/test/json.c b/test/json.c index 821f786..0306e5a 100644 --- a/test/json.c +++ b/test/json.c @@ -125,7 +125,7 @@ static void test_tuples() { t("[ { } ]", "[{}]"); t("[{\"\":true}]", "[{\"\":1}]"); e("[{\"a\":null,\"b\":\"str\"}]"); - t("[{\"1\" : \"1\" , \"\\t\" \t : {} } ]", "[{\"\\t\":{},\"1\":\"1\"}]"); // order depends on hash function + t("[{\"1\" : \"1\" , \"\\t\" \t : {} } ]", "[{\"1\":\"1\",\"\\t\":{}}]"); // order depends on hash function f("[{1:2}]", 2); f("[{\"1\"}]", 5); f("[{\"\":}]", 5); |