Skip to content

Use .min instead of & to calculate max pages#312

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:clamp
Aug 5, 2021
Merged

Use .min instead of & to calculate max pages#312
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:clamp

Conversation

@alexcrichton
Copy link
Member

The function here intends clamping semantics rather than altering the
input with bit-wise arithmetic (which only really works if the input is
randomly generated).

The function here intends clamping semantics rather than altering the
input with bit-wise arithmetic (which only really works if the input is
randomly generated).
@alexcrichton alexcrichton merged commit c0bb0b7 into bytecodealliance:main Aug 5, 2021
@alexcrichton alexcrichton deleted the clamp branch August 5, 2021 20:04
alexcrichton pushed a commit to alexcrichton/wasm-tools that referenced this pull request Nov 16, 2022
* Remove the special case for empty records.

WebAssembly/component-model#104 is closed, so remove the corresponding
special case from wit-bindgen too.

* Update unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant