Make more major improvements to redbean
- POSIX regular expressions for Lua - Improved protocol parsing and encoding - Additional APIs for ZIP storage retrieval - Fix st_mode issue on NT for regular files - Generalized APIs for URL and Host handling - Worked out the kinks in resource resolution - Allow for custom error pages like /404.html
This commit is contained in:
2
third_party/chibicc/hashmap.c
vendored
2
third_party/chibicc/hashmap.c
vendored
@ -26,7 +26,7 @@ static void rehash(HashMap *map) {
|
||||
nkeys++;
|
||||
}
|
||||
}
|
||||
size_t cap = map->capacity;
|
||||
int cap = MAX(8, map->capacity);
|
||||
while ((nkeys * 100) / cap >= LOW_WATERMARK) cap = cap * 2;
|
||||
assert(cap > 0);
|
||||
// Create a new hashmap and copy all key-values.
|
||||
|
||||
Reference in New Issue
Block a user