message: feat(c-api) Replace the max limit sentinel value by a constant.
  In the `wasm.h` header file, it is defined by `wasm_limits_max_default`.
diff: @@ -30,11 +30,13 @@ pub struct wasm_limits_t {
  pub(crate) max: u32,
  }
  +const LIMITS_MAX_SENTINEL: u32 = u32::max_value();
  +
  #[no_mangle]
  pub unsafe extern "C" fn wasm_memorytype_new(limits: &wasm_limits_t) -> Box<wasm_memorytype_t> {
  let min_pages = Pages(limits.min as _);
  // u32::max_value() is a sentinel value for no max specified
  - let max_pages = if limits.max == u32::max_value() {
  + let max_pages = if limits.max == LIMITS_MAX_SENTINEL {
  None
  } else {
  Some(Pages(limits.max as _))
  @@ -58,6 +60,9 @@ pub unsafe extern "C" fn wasm_memorytype_limits(mt: &wasm_memorytype_t) -> *cons
  Box::into_raw(Box::new(wasm_limits_t {
  min: md.minimum.0 as _,
  - max: md.maximum.map(|max| max.0 as _).unwrap_or(u32::max_value()),
  + max: md
  + .maximum
  + .map(|max| max.0 as _)
  + .unwrap_or(LIMITS_MAX_SENTINEL),
  }))
  }
  