wasm: replace a panic! with an internal_error!

This commit is contained in:
Brian Carroll 2022-02-11 18:46:18 +00:00
parent 54788b0357
commit fcda6fabe2

View file

@ -213,7 +213,7 @@ macro_rules! round_up_to_alignment {
if $alignment_bytes <= 1 {
$unaligned
} else if $alignment_bytes.count_ones() != 1 {
panic!(
internal_error!(
"Cannot align to {} bytes. Not a power of 2.",
$alignment_bytes
);