Skip to content

Commit

Permalink
return values wasm values and make getPageSize pub
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Philipp Hafer committed Aug 6, 2023
1 parent 8b4888b commit 451182c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/std/c/darwin.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,7 @@ pub const MachTask = extern struct {
return left;
}

fn getPageSize(task: MachTask) MachError!usize {
pub fn getPageSize(task: MachTask) MachError!usize {
if (task.isValid()) {
var info_count = TASK_VM_INFO_COUNT;
var vm_info: task_vm_info_data_t = undefined;
Expand Down
2 changes: 1 addition & 1 deletion lib/std/os.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4342,7 +4342,7 @@ pub fn fork() ForkError!pid_t {
/// constant during process lifetime, but other page sizes might be usable.
pub fn getDefaultPageSize() error{UnknownPageSize}!usize {
switch (builtin.cpu.arch) { // archs with fixed size page size
.wasm32, .wasm64 => 64 * 1024,
.wasm32, .wasm64 => return 64 * 1024,
else => {},
}

Expand Down

0 comments on commit 451182c

Please sign in to comment.