mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 06:50:31 +02:00
Fix alloc_aligned for high allocations
* libguile/loader.c (alloc_aligned): Widen alignment. Thanks to Matt Wette for the report and the fix!
This commit is contained in:
parent
c391ab8c90
commit
81d8ff9e45
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ alloc_aligned (size_t len, unsigned alignment)
|
||||||
ret = malloc (len + alignment - 1);
|
ret = malloc (len + alignment - 1);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
abort ();
|
abort ();
|
||||||
ret = (char *) ALIGN ((scm_t_uintptr) ret, alignment);
|
ret = (char *) ALIGN ((scm_t_uintptr) ret, (scm_t_uintptr) alignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue