Skip to content

Commit

Permalink
Another fix for wasm example
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Dec 12, 2018
1 parent dfe2046 commit e3cdea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub unsafe extern "C" fn page_alloc() -> *mut u8 {
let ret = memory_grow(0, 1);

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

Expand Down

0 comments on commit e3cdea8

Please sign in to comment.