From b8be3ab6ea6356c3ce1858606b828ac7b43c2acc Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Tue, 5 Sep 2023 16:22:00 +0200 Subject: [PATCH] Fix repr of MTLLibraryType --- src/library.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library.rs b/src/library.rs index 4ec67e8..09f6eb1 100644 --- a/src/library.rs +++ b/src/library.rs @@ -426,7 +426,7 @@ impl FunctionConstantValuesRef { /// Only available on (macos(11.0), ios(14.0)) /// /// See -#[repr(u64)] +#[repr(isize)] #[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)] pub enum MTLLibraryType { Executable = 0, @@ -434,7 +434,7 @@ pub enum MTLLibraryType { } unsafe impl Encode for MTLLibraryType { - const ENCODING: Encoding = u64::ENCODING; + const ENCODING: Encoding = isize::ENCODING; } /// See