Fixed ref in X86.ml

This commit is contained in:
Dmitry Boulytchev 2018-10-23 14:29:30 +03:00
parent 1ac302ac46
commit ee402687de

View file

@ -393,7 +393,7 @@ class env =
(* tag hash: gets a hash for a string tag *)
method hash tag =
let h = ref 0 in
let h = Pervasives.ref 0 in
for i = 0 to min (String.length tag - 1) 4 do
h := (!h lsl 6) lor (String.index chars tag.[i])
done;