mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-04 01:41:18 -05:00
treewide: fix typos
Signed-off-by: Diego Viola <diego.viola@gmail.com>
This commit is contained in:
parent
1ce992d7cb
commit
6d9aa17572
13 changed files with 15 additions and 15 deletions
|
|
@ -14,7 +14,7 @@ bool array_realloc(struct wl_array *arr, size_t size) {
|
|||
// If the size is less than 1/4th of the allocation size, we shrink it.
|
||||
// 1/4th is picked to provide hysteresis, without which an array with size
|
||||
// arr->alloc would constantly reallocate if an element is added and then
|
||||
// removed continously.
|
||||
// removed continuously.
|
||||
size_t alloc;
|
||||
if (arr->alloc > 0 && size > arr->alloc / 4) {
|
||||
alloc = arr->alloc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue