Skip to content

Commit 0174878

Browse files
charlieviethBenBE
andauthored
Hashtable: code formatting
Co-authored-by: BenBE <BenBE@geshi.org>
1 parent 7d41d7a commit 0174878

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Hashtable.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ static inline bool Hashtable_shouldResize(const Hashtable* this) {
173173

174174
Hashtable* Hashtable_new(size_t size, bool owner) {
175175
assert(MIN_TABLE_SIZE == primes[0]);
176-
Hashtable* this;
177-
178-
this = xMalloc(sizeof(Hashtable));
176+
Hashtable* this = xMalloc(sizeof(Hashtable));
179177
this->size = nextPrime(size);
180178
this->items = 0;
181179
this->buckets = (HashtableItem*) xCalloc(this->size, sizeof(HashtableItem));

0 commit comments

Comments
 (0)