diff options
author | Jacques-Henri Jourdan <jacques-henri.jourdan@inria.fr> | 2015-11-04 03:04:21 +0100 |
---|---|---|
committer | Jacques-Henri Jourdan <jacques-henri.jourdan@inria.fr> | 2015-11-04 03:04:21 +0100 |
commit | 5664fddcab15ef4482d583673c75e07bd1e96d0a (patch) | |
tree | 878b22860e69405ba5cf6fd2798731dac8ce660c /lib/Camlcoq.ml | |
parent | b960c83725d7e185ac5c6e3c0d6043c7dcd2f556 (diff) | |
parent | fe73ed58ef80da7c53c124302a608948fb190229 (diff) | |
download | compcert-5664fddcab15ef4482d583673c75e07bd1e96d0a.tar.gz compcert-5664fddcab15ef4482d583673c75e07bd1e96d0a.zip |
Merge remote-tracking branch 'origin/master' into parser_fix
Diffstat (limited to 'lib/Camlcoq.ml')
-rw-r--r-- | lib/Camlcoq.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Camlcoq.ml b/lib/Camlcoq.ml index c50b3230..c5fb2e55 100644 --- a/lib/Camlcoq.ml +++ b/lib/Camlcoq.ml @@ -86,7 +86,7 @@ module P = struct if n = 0l then assert false else Coq_xO (of_int32 (Int32.shift_right_logical n 1)) - else + else if n = 1l then Coq_xH else Coq_xI (of_int32 (Int32.shift_right_logical n 1)) @@ -101,7 +101,7 @@ module P = struct if n = 0L then assert false else Coq_xO (of_int64 (Int64.shift_right_logical n 1)) - else + else if n = 1L then Coq_xH else Coq_xI (of_int64 (Int64.shift_right_logical n 1)) @@ -295,7 +295,7 @@ let intern_string s = next_atom := Pos.succ !next_atom; Hashtbl.add atom_of_string s a; Hashtbl.add string_of_atom a s; - a + a let extern_atom a = try Hashtbl.find string_of_atom a |