diff options
Diffstat (limited to 'library/stdarch/examples/wasm.rs')
| -rw-r--r-- | library/stdarch/examples/wasm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/examples/wasm.rs b/library/stdarch/examples/wasm.rs index e6006df06ec..53f9c55d4e4 100644 --- a/library/stdarch/examples/wasm.rs +++ b/library/stdarch/examples/wasm.rs @@ -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 == usize::max_value() { + if ret == usize::MAX { return ptr::null_mut(); } |
