Skip to content

Commit

Permalink
Merge pull request wasmerio#2493 from FGasper/wasm_limits_t__visibility
Browse files Browse the repository at this point in the history
DOCS: Make wasm_limits_t members publicly visible.
  • Loading branch information
syrusakbary authored Jul 29, 2021
2 parents 51fdf66 + 75142b3 commit 223ceb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/c-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Looking for changes to the Wasmer CLI and the Rust API? See our [Primary Changel

## **[Unreleased]**

### Fixed
- [#2485](https://github.com/wasmerio/wasmer/pull/2493) Document wasm_limits_t’s members publicly.

### Added
- [#2449](https://github.com/wasmerio/wasmer/pull/2449) Configure `soname`, `install_name`, `out-implib`, etc.

Expand Down
4 changes: 2 additions & 2 deletions lib/c-api/src/wasm_c_api/types/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ pub unsafe extern "C" fn wasm_memorytype_delete(_memory_type: Option<Box<wasm_me
#[derive(Copy, Clone, Debug)]
#[repr(C)]
pub struct wasm_limits_t {
pub(crate) min: u32,
pub(crate) max: u32,
pub min: u32,
pub max: u32,
}

const LIMITS_MAX_SENTINEL: u32 = u32::max_value();
Expand Down

0 comments on commit 223ceb8

Please sign in to comment.