Fixed configuration

pull/2/head
Mark 2023-04-08 10:51:22 -07:00
parent 1e04b15b46
commit 10f706582e
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ cross-compilation to other systems. RUG does not work on all systems.
pub mod quantity;
cfg_if::cfg_if! {
if #[cfg(target_arch = "unix")] {
if #[cfg(target_family = "unix")] {
mod rationalq;
mod floatq;
} else {

View File

@ -16,7 +16,7 @@ use crate::quantity::FloatBase;
cfg_if::cfg_if! {
if #[cfg(target_arch = "unix")] {
if #[cfg(target_family = "unix")] {
use crate::quantity::rationalq::RationalQ;
use crate::quantity::floatq::FloatQ;
@ -42,7 +42,7 @@ cfg_if::cfg_if! {
impl Quantity {
cfg_if::cfg_if! {
if #[cfg(target_arch = "unix")] {
if #[cfg(target_family = "unix")] {
pub fn new_rational(top: i64, bottom: i64) -> Quantity {
return wrap_rational!(RationalQ::from_frac(top, bottom));
}