Skip to content

Commit 2254882

Browse files
HurricanKaiandrewrk
authored andcommitted
Fix compilation failure in valgrind.zig
1 parent 8c6b027 commit 2254882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/valgrind.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub fn createMempool(pool: [*]u8, rzB: usize, is_zeroed: bool, flags: usize) voi
171171

172172
/// Destroy a memory pool.
173173
pub fn destroyMempool(pool: [*]u8) void {
174-
doClientRequestStmt(.DestroyMempool, pool, 0, 0, 0, 0);
174+
doClientRequestStmt(.DestroyMempool, @intFromPtr(pool), 0, 0, 0, 0);
175175
}
176176

177177
/// Associate a piece of memory with a memory pool.

0 commit comments

Comments
 (0)