Skip to content

Commit

Permalink
Fix cfg_ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
cowuake committed Aug 19, 2024
1 parent d7488b2 commit b9063ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions schemius/src/core/s_expression/s_number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ use num::{integer::Roots, BigInt, BigRational, Complex, One, ToPrimitive, Zero};
use crate::core::constants::numbers;

cfg_if! {
if #[cfg(i32)] {
if #[cfg(feature = "i32")] {
pub type NativeInt = i32;
} else if #[cfg(i64)] {
} else if #[cfg(feature = "i64")] {
pub type NativeInt = i64;
} else if #[cfg(i128)] {
} else if #[cfg(feature = "i128")] {
pub type NativeInt = i128;
} else {
pub type NativeInt = i64;
}
}

cfg_if! {
if #[cfg(f32)] {
if #[cfg(feature = "f32")] {
pub type NativeFloat = f32;
} else if #[cfg(f64)] {
} else if #[cfg(feature = "f64")] {
pub type NativeFloat = f64;
} else {
pub type NativeFloat = f64;
Expand Down

0 comments on commit b9063ba

Please sign in to comment.