Skip to content

Commit

Permalink
- Fixed the -nBACKEND switch; it now includes the support for Math:…
Browse files Browse the repository at this point in the history
…:BigRat and Math::BigFloat in addition to Math::BigInt.
  • Loading branch information
trizen committed Sep 5, 2015
1 parent 4ddb2c5 commit 88d4728
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/sidef
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,12 @@ sub load_math_backend {
my ($type) = @_;

require Math::BigInt;
require Math::BigRat;
require Math::BigFloat;

Math::BigInt->import(lib => $type);
Math::BigFloat->import(lib => $type);
Math::BigRat->import(lib => $type);
}

sub unload_numbers {
Expand Down Expand Up @@ -786,7 +791,7 @@ HEAD

close $fh;
}
}
}
} => $path
);

Expand Down

0 comments on commit 88d4728

Please sign in to comment.