Skip to content

Commit e3cdea8

Browse files
committed
Another fix for wasm example
1 parent dfe2046 commit e3cdea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub unsafe extern "C" fn page_alloc() -> *mut u8 {
2323
let ret = memory_grow(0, 1);
2424

2525
// if we failed to allocate a page then return null
26-
if ret == -1 {
26+
if ret == usize::max_value() {
2727
return ptr::null_mut();
2828
}
2929

0 commit comments

Comments
 (0)