mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
wasm: replace a panic! with an internal_error!
This commit is contained in:
parent
54788b0357
commit
fcda6fabe2
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ macro_rules! round_up_to_alignment {
|
||||||
if $alignment_bytes <= 1 {
|
if $alignment_bytes <= 1 {
|
||||||
$unaligned
|
$unaligned
|
||||||
} else if $alignment_bytes.count_ones() != 1 {
|
} else if $alignment_bytes.count_ones() != 1 {
|
||||||
panic!(
|
internal_error!(
|
||||||
"Cannot align to {} bytes. Not a power of 2.",
|
"Cannot align to {} bytes. Not a power of 2.",
|
||||||
$alignment_bytes
|
$alignment_bytes
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue