mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 14:58:50 +00:00
Fixed ref in X86.ml
This commit is contained in:
parent
1ac302ac46
commit
ee402687de
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue