Skip to content

Commit 57e55cc

Browse files
committed
Fix compile
1 parent 3ab28c8 commit 57e55cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasmtime/src/runtime/vm/sys/unix/pagemap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub unsafe fn reset_with_pagemap(
169169
// Keeping less than one page of memory resident when the original
170170
// mapping itself is also less than a page? Also fall back to the
171171
// default behavior as this'll just be a simple memcpy.
172-
if keep_resident.byte_count() <= host_page_size && len <= host_page_size {
172+
if keep_resident.byte_count() <= host_page_size && len.byte_count() <= host_page_size {
173173
pagemap = None;
174174
}
175175
}

0 commit comments

Comments
 (0)