mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[util] Fix a count error when resizing darrays
Turns out I had never fully tested inserts.
This commit is contained in:
parent
14bc560624
commit
941a1267bc
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@
|
|||
} \
|
||||
DARRAY_RESIZE (ar, ar->size + sp); \
|
||||
memmove (&ar->a[po + sp], &ar->a[po], \
|
||||
(ar->size - po) * sizeof (*ar->a)); \
|
||||
(ar->size - po - sp) * sizeof (*ar->a)); \
|
||||
&ar->a[po]; \
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue