Skip to content

Commit d12a5ba

Browse files
authored
Merge pull request #160 from lthls/patch-2
Hide unsafe code from the optimiser
2 parents cc3ddcb + e1bb9b4 commit d12a5ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

elpi.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ depends: [
2525
"cmdliner" {with-test}
2626
"dune" {>= "2.8.0"}
2727
"conf-time" {with-test}
28-
"atdgen" {>= "2.9.1"}
29-
"atdts" {>= "2.9.1"}
28+
"atdgen" {>= "2.9.1" & < "2.10.0"}
29+
"atdts" {>= "2.9.1" & < "2.10.0"}
3030
]
3131
depopts: [
3232
"elpi-option-legacy-parser"

src/runtime.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,7 @@ and alternative = {
28422842
clauses : clause list;
28432843
next : alternative;
28442844
}
2845-
let noalts : alternative = Obj.magic 0
2845+
let noalts : alternative = Obj.magic (Sys.opaque_identity 0)
28462846

28472847
(******************************************************************************
28482848
Constraint propagation

0 commit comments

Comments
 (0)