mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-15 02:18:08 +02:00
util: xrealloc should take a size_t
For correctness only because this is C and types are mostly just there for lolz, not because they're actualy useful. Assisted-by: Claude:claude-opus-4-6 Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/388>
This commit is contained in:
parent
61600a6577
commit
e2197b8389
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ xalloc(size_t size)
|
|||
}
|
||||
|
||||
static inline void *
|
||||
xrealloc(void *ptr, int size)
|
||||
xrealloc(void *ptr, size_t size)
|
||||
{
|
||||
void *tmp = realloc(ptr, size);
|
||||
assert(tmp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue