mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use a const block
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
This commit is contained in:
parent
8668e4dd07
commit
af1ad78bff
1 changed files with 1 additions and 1 deletions
|
@ -1164,7 +1164,7 @@ fn aligned_stack_bytes(num_slots: usize) -> usize {
|
|||
num_slots
|
||||
};
|
||||
|
||||
const _: () = assert!(SIZEOF_VALUE == 8, "aligned_stack_bytes() assumes SIZEOF_VALUE == 8");
|
||||
const { assert!(SIZEOF_VALUE == 8, "aligned_stack_bytes() assumes SIZEOF_VALUE == 8"); }
|
||||
num_slots * SIZEOF_VALUE
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue