ocaml: Fix binding for Hivex.value_type
authorAlex Nelson <ajnelson@cs.ucsc.edu>
Wed, 31 Aug 2011 00:47:01 +0000 (17:47 -0700)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 31 Aug 2011 09:25:06 +0000 (10:25 +0100)
generator/generator.ml

index de103ed..c98e625 100755 (executable)
@@ -1946,7 +1946,7 @@ copy_type_len (size_t len, hive_type t)
   v = Val_hive_type (t);
   Store_field (rv, 0, v);
   v = Val_int (len);
-  Store_field (rv, 1, len);
+  Store_field (rv, 1, v);
   CAMLreturn (rv);
 }