Skip to content

Commit a59d5ac

Browse files
committed
Re-format after recent change to fix linkhash.
1 parent 4f43a07 commit a59d5ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

linkhash.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,8 @@ int lh_table_insert_w_hash(struct lh_table *t, const void *k, const void *v, con
580580
{
581581
unsigned long n;
582582

583-
if (t->count >= t->size * LH_LOAD_FACTOR) {
583+
if (t->count >= t->size * LH_LOAD_FACTOR)
584+
{
584585
/* Avoid signed integer overflow with large tables. */
585586
int new_size = (t->size > INT_MAX / 2) ? INT_MAX : (t->size * 2);
586587
if (t->size == INT_MAX || lh_table_resize(t, new_size) != 0)

tests/test4.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#include "config.h"
66
#include <assert.h>
77
#include <stdio.h>
8-
#include <string.h>
98
#include <stdlib.h>
9+
#include <string.h>
1010

1111
#include "json_inttypes.h"
1212
#include "json_object.h"
@@ -49,7 +49,6 @@ static void test_lot_of_adds()
4949
json_object_put(jobj);
5050
}
5151

52-
5352
int main(void)
5453
{
5554
const char *input = "\"\\ud840\\udd26,\\ud840\\udd27,\\ud800\\udd26,\\ud800\\udd27\"";

0 commit comments

Comments
 (0)