zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2254882ebe1f3fa9e616347d09002e5420cf1221 (tree)
parent 8c6b0271cc55d4c9ae2793340419df3fd3d2c1d7
Author: Kai Jellinghaus <contact@kaij.tech>
Date:   Thu, 12 Oct 2023 11:00:25 +0200

Fix compilation failure in valgrind.zig
Diffstat:
Mlib/std/valgrind.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/valgrind.zig b/lib/std/valgrind.zig @@ -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.