{
unsigned long n;
- if (t->count >= t->size * LH_LOAD_FACTOR) {
+ if (t->count >= t->size * LH_LOAD_FACTOR)
+ {
/* Avoid signed integer overflow with large tables. */
int new_size = (t->size > INT_MAX / 2) ? INT_MAX : (t->size * 2);
if (t->size == INT_MAX || lh_table_resize(t, new_size) != 0)
#include "config.h"
#include <assert.h>
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
#include "json_inttypes.h"
#include "json_object.h"
json_object_put(jobj);
}
-
int main(void)
{
const char *input = "\"\\ud840\\udd26,\\ud840\\udd27,\\ud800\\udd26,\\ud800\\udd27\"";