Skip to content

Commit

Permalink
page size: fix failure to implicitly cast slice
Browse files Browse the repository at this point in the history
All that changed was that I turned a slice of page_size
length to pageSize() length. I'm not sure why Zig fails
to implicitly cast the pageSize() length slice now, but
an explicit cast should fix this.
  • Loading branch information
archbirdplus committed Aug 8, 2024
1 parent c98e58c commit f9da53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/debug.zig
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ pub const StackIterator = struct {

// The only error this function can throw is ERROR_INVALID_PARAMETER.
// supply an address that invalid i'll be thrown.
const rc = windows.VirtualQuery(aligned_memory, &memory_info, aligned_memory.len) catch {
const rc = windows.VirtualQuery(@ptrCast(aligned_memory), &memory_info, aligned_memory.len) catch {
return false;
};

Expand Down

0 comments on commit f9da53c

Please sign in to comment.