correct type of bytes_or_null to allow it to be aligned to 1 instead of 8

This commit is contained in:
Brendan Hansknecht 2023-09-27 17:08:35 -07:00
parent e5bbbe615c
commit f1126aae75
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -226,7 +226,7 @@ pub fn decrefCheckNullC(
}
pub fn decrefDataPtrC(
bytes_or_null: ?[*]isize,
bytes_or_null: ?[*]u8,
alignment: u32,
) callconv(.C) void {
var bytes = bytes_or_null orelse return;
@ -242,7 +242,7 @@ pub fn decrefDataPtrC(
}
pub fn increfDataPtrC(
bytes_or_null: ?[*]isize,
bytes_or_null: ?[*]u8,
inc_amount: isize,
) callconv(.C) void {
var bytes = bytes_or_null orelse return;
@ -257,7 +257,7 @@ pub fn increfDataPtrC(
}
pub fn freeDataPtrC(
bytes_or_null: ?[*]isize,
bytes_or_null: ?[*]u8,
alignment: u32,
) callconv(.C) void {
var bytes = bytes_or_null orelse return;