diff --git a/mozjs/src/jsval.rs b/mozjs/src/jsval.rs index e6ab6a84e0..32a85b76fe 100644 --- a/mozjs/src/jsval.rs +++ b/mozjs/src/jsval.rs @@ -102,7 +102,7 @@ fn AssertGCPointerValid(bits: u64) { #[cfg(target_pointer_width = "32")] #[inline(always)] -fn AssertIsGCPointerValid(bits: u64) {} +fn AssertGCPointerValid(bits: u32) {} #[cfg(target_pointer_width = "64")] #[inline(always)] @@ -112,7 +112,7 @@ fn AssertGCPointerAlignment(bits: u64) { #[cfg(target_pointer_width = "32")] #[inline(always)] -fn AssertGCPointerAlignment(bits: u64) {} +fn AssertGCPointerAlignment(bits: u32) {} #[inline(always)] pub fn Int32Value(i: i32) -> JSVal { @@ -269,7 +269,6 @@ impl JSVal { } #[inline(always)] - #[cfg(target_pointer_width = "64")] pub fn is_bigint(&self) -> bool { self.toTag() == ValueTag::BIGINT as u64 }