Limit type size assertion to 64bit (#14514)

This commit is contained in:
Micha Reiser 2024-11-21 13:49:55 +01:00 committed by GitHub
parent f684b6fff4
commit 87043a2415
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2967,6 +2967,7 @@ impl<'db> TupleType<'db> {
// Make sure that the `Type` enum does not grow unexpectedly. // Make sure that the `Type` enum does not grow unexpectedly.
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
#[cfg(target_pointer_width = "64")]
static_assertions::assert_eq_size!(Type, [u8; 16]); static_assertions::assert_eq_size!(Type, [u8; 16]);
#[cfg(test)] #[cfg(test)]