Make tag i32 on 64-bit targets.

This commit is contained in:
Stephen Chung 2021-05-18 12:24:23 +08:00
parent 3116a39331
commit 70f09d1c84

View File

@ -141,6 +141,11 @@ pub enum AccessMode {
}
/// Arbitrary data attached to a [`Dynamic`] value.
#[cfg(target_pointer_width = "64")]
pub type Tag = i32;
/// Arbitrary data attached to a [`Dynamic`] value.
#[cfg(target_pointer_width = "32")]
pub type Tag = i16;
/// Default tag value for [`Dynamic`].