Static exp evaluation: missing +. and -.
This commit is contained in:
parent
84ca123361
commit
1910e7f868
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ let apply_op partial loc op se_list =
|
|||
| "/", [Sint n1; Sint n2] ->
|
||||
if n2 = 0 then raise (Evaluation_failed (Division_by_zero, loc));
|
||||
Sint (n1 / n2)
|
||||
| "+.", [Sfloat f1; Sfloat f2] -> Sfloat (f1 +. f2)
|
||||
| "-.", [Sfloat f1; Sfloat f2] -> Sfloat (f1 -. f2)
|
||||
| "*.", [Sfloat f1; Sfloat f2] -> Sfloat (f1 *. f2)
|
||||
| "/.", [Sfloat f1; Sfloat f2] ->
|
||||
if f2 = 0.0 then raise (Evaluation_failed (Division_by_zero, loc));
|
||||
|
|
Loading…
Reference in a new issue