fix Atomic shims on < 4.12

This commit is contained in:
Simon Cruanes 2022-01-01 21:59:35 -05:00
parent 326e1e2abd
commit d62d5515f1
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -1,6 +1,6 @@
let atomic_before_412 = {| let atomic_before_412 = {|
type !'a t = {mutable x: 'a} type 'a t = {mutable x: 'a}
let[@inline] make x = {x} let[@inline] make x = {x}
let[@inline] get {x} = x let[@inline] get {x} = x
let[@inline] set r x = r.x <- x let[@inline] set r x = r.x <- x