diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2020-03-30 12:30:06 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2020-03-30 12:30:06 -0700 |
| commit | ab2998bac3bd7ae254cacad3f0911c950691216a (patch) | |
| tree | 2a7c35dda9a8f9edceb2083f410aedea026d8884 /src/test/codegen/src-hash-algorithm | |
| parent | 9a12971da5c08f9a95d54bdaef5cd83698ed4509 (diff) | |
| download | rust-ab2998bac3bd7ae254cacad3f0911c950691216a.tar.gz rust-ab2998bac3bd7ae254cacad3f0911c950691216a.zip | |
std: Fix over-aligned allocations on wasm32-wasi
The wasm32-wasi target delegates its malloc implementation to the functions in wasi-libc, but the invocation of `aligned_alloc` was incorrect by passing the number of bytes requested first rather than the alignment. This commit swaps the order of these two arguments to ensure that we allocate over-aligned memory correctly.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
