Skip to content

Commit

Permalink
Fixed Compilation on 32b Platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Redfire75369 committed Sep 7, 2023
1 parent 6e6ed42 commit 30729cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mozjs/src/jsval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 30729cf

Please sign in to comment.