projects
/
Faustine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaning the examples' Makefiles and octaves scripts.
[Faustine.git]
/
interpretor
/
basic.ml
diff --git
a/interpretor/basic.ml
b/interpretor/basic.ml
index
1295390
..
55f0fb5
100644
(file)
--- a/
interpretor/basic.ml
+++ b/
interpretor/basic.ml
@@
-369,11
+369,11
@@
let basic_xor = basic_logic xor;;
let rec basic_adjust : (float -> float) -> basic -> basic =
fun oper -> fun b ->
match b with
let rec basic_adjust : (float -> float) -> basic -> basic =
fun oper -> fun b ->
match b with
- |N i -> R (
float_of_int i
)
- |R f -> R (
floo
r f)
+ |N i -> R (
oper (float_of_int i)
)
+ |R f -> R (
ope
r f)
|Vec vec -> Vec (new vector vec#size
(fun_unary (basic_adjust oper) vec#nth))
|Vec vec -> Vec (new vector vec#size
(fun_unary (basic_adjust oper) vec#nth))
- |Zero -> R
0.
+ |Zero -> R
(oper 0.)
|Error -> Error;;
let basic_floor = basic_adjust floor;;
|Error -> Error;;
let basic_floor = basic_adjust floor;;