mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
fix alignment issue
This commit is contained in:
parent
13df4ee656
commit
ca5efdf1d9
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ pub fn decref(
|
||||||
|
|
||||||
var bytes = bytes_or_null orelse return;
|
var bytes = bytes_or_null orelse return;
|
||||||
|
|
||||||
const isizes: [*]isize = @ptrCast([*]isize, @alignCast(8, bytes));
|
const isizes: [*]isize = @ptrCast([*]isize, @alignCast(@sizeOf(isize), bytes));
|
||||||
|
|
||||||
const refcount = (isizes - 1)[0];
|
const refcount = (isizes - 1)[0];
|
||||||
const refcount_isize = @bitCast(isize, refcount);
|
const refcount_isize = @bitCast(isize, refcount);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue