Fix compilation failure in valgrind.zig

This commit is contained in:
Kai Jellinghaus 2023-10-12 11:00:25 +02:00 committed by Andrew Kelley
parent 8c6b0271cc
commit 2254882ebe

View File

@ -171,7 +171,7 @@ pub fn createMempool(pool: [*]u8, rzB: usize, is_zeroed: bool, flags: usize) voi
/// Destroy a memory pool.
pub fn destroyMempool(pool: [*]u8) void {
doClientRequestStmt(.DestroyMempool, pool, 0, 0, 0, 0);
doClientRequestStmt(.DestroyMempool, @intFromPtr(pool), 0, 0, 0, 0);
}
/// Associate a piece of memory with a memory pool.