summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Campbell2017-10-02 13:19:28 +0100
committerBrian Campbell2017-10-02 13:19:28 +0100
commit686b65f279db1c37ec4e72e4b76b3ce43d1138f5 (patch)
tree97016d7bcf6e78db6830c91c6ea1fe30745ad2a9 /src
parent7f0a2bbfa6472e9f83693d76407e0ec30ddd69a3 (diff)
Make undefined constant propagation stop at ex_int
Diffstat (limited to 'src')
-rw-r--r--src/monomorphise.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monomorphise.ml b/src/monomorphise.ml
index 27abed6c..89648d1f 100644
--- a/src/monomorphise.ml
+++ b/src/monomorphise.ml
@@ -694,7 +694,7 @@ let try_app (l,ann) (Id_aux (id,_),args) =
| _ -> None
else if id = Id "ex_int" then
match args with
- | [E_aux (E_lit _,_) as exp] -> Some exp
+ | [E_aux (E_lit (L_aux (L_num _,_)),_) as exp] -> Some exp
| _ -> None
else if id = Id "vector_access" then
match args with