make sure to always switch on the tag id, not the tag itself

This commit is contained in:
Folkert 2021-05-26 20:18:59 +02:00
parent e8e83513e9
commit 498d3ba3b5
2 changed files with 31 additions and 6 deletions

View file

@ -16,6 +16,10 @@ const GENERATE_NULLABLE: bool = true;
const DEFAULT_NUM_BUILTIN: Builtin<'_> = Builtin::Int64;
pub const TAG_SIZE: Builtin<'_> = Builtin::Int64;
impl Layout<'_> {
pub const TAG_SIZE: Layout<'static> = Layout::Builtin(Builtin::Int64);
}
#[derive(Copy, Clone)]
#[repr(u8)]
pub enum InPlace {