diff --git a/src/std_fns.rs b/src/std_fns.rs index 49468c7..3a60f75 100644 --- a/src/std_fns.rs +++ b/src/std_fns.rs @@ -268,6 +268,8 @@ pub fn plus(stack: &mut Stack) -> OError { Mega, Long, Int, + Float, + Double, ) .spl(), ); @@ -286,6 +288,8 @@ pub fn minus(stack: &mut Stack) -> OError { Mega, Long, Int, + Float, + Double, ) .spl(), ); @@ -304,6 +308,8 @@ pub fn slash(stack: &mut Stack) -> OError { Mega, Long, Int, + Float, + Double, ) .spl(), ); @@ -322,6 +328,8 @@ pub fn star(stack: &mut Stack) -> OError { Mega, Long, Int, + Float, + Double, ) .spl(), ); @@ -336,7 +344,7 @@ pub fn percent(stack: &mut Stack) -> OError { a, b, rem, - stack.err(ErrorKind::InvalidCall("star".to_owned())), + stack.err(ErrorKind::InvalidCall("percent".to_owned())), Mega, Long, Int,