fix alignment issue

This commit is contained in:
Folkert 2021-08-24 20:23:24 +02:00
parent 13df4ee656
commit ca5efdf1d9

View file

@ -115,7 +115,7 @@ pub fn decref(
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_isize = @bitCast(isize, refcount);