We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b697ca5 + cb2cb7b commit e846ef2Copy full SHA for e846ef2
objc_encode/src/encode.rs
@@ -40,6 +40,9 @@ encode_impls!(
40
);
41
42
unsafe impl Encode for isize {
43
+ #[cfg(target_pointer_width = "16")]
44
+ const ENCODING: Encoding<'static> = i16::ENCODING;
45
+
46
#[cfg(target_pointer_width = "32")]
47
const ENCODING: Encoding<'static> = i32::ENCODING;
48
@@ -48,6 +51,9 @@ unsafe impl Encode for isize {
51
}
49
52
50
53
unsafe impl Encode for usize {
54
55
+ const ENCODING: Encoding<'static> = u16::ENCODING;
56
57
58
const ENCODING: Encoding<'static> = u32::ENCODING;
59
0 commit comments