This commit is contained in:
Stephen Chung 2020-04-21 00:24:25 +08:00
parent 0306d15c04
commit e394824bf3
2 changed files with 5 additions and 2 deletions

View File

@ -13,9 +13,9 @@ use crate::parser::FLOAT;
use crate::stdlib::{i32, i64, ops::Deref}; use crate::stdlib::{i32, i64, ops::Deref};
#[cfg(feature = "only_i32")] #[cfg(feature = "only_i32")]
const MAX_INT: INT = i32::MAX; pub const MAX_INT: INT = i32::MAX;
#[cfg(not(feature = "only_i32"))] #[cfg(not(feature = "only_i32"))]
const MAX_INT: INT = i64::MAX; pub const MAX_INT: INT = i64::MAX;
pub struct BasicMathPackage(PackageLibrary); pub struct BasicMathPackage(PackageLibrary);

View File

@ -1,4 +1,5 @@
use super::logic::{eq, gt, gte, lt, lte, ne}; use super::logic::{eq, gt, gte, lt, lte, ne};
use super::math_basic::MAX_INT;
use super::{ use super::{
create_new_package, reg_binary, reg_none, reg_unary, Package, PackageLibrary, create_new_package, reg_binary, reg_none, reg_unary, Package, PackageLibrary,
PackageLibraryStore, PackageLibraryStore,
@ -6,6 +7,8 @@ use super::{
use crate::fn_register::{map_dynamic as map, map_result as result}; use crate::fn_register::{map_dynamic as map, map_result as result};
use crate::parser::INT; use crate::parser::INT;
use crate::result::EvalAltResult;
use crate::token::Position;
use crate::stdlib::{ops::Deref, time::Instant}; use crate::stdlib::{ops::Deref, time::Instant};