Correct 32-bit to 64-bit call
authorAlex Nelson <ajnelson@cs.ucsc.edu>
Thu, 11 Aug 2011 03:56:33 +0000 (20:56 -0700)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 11 Aug 2011 17:58:11 +0000 (18:58 +0100)
generator/generator.ml

index 31478cd..de911f1 100755 (executable)
@@ -1771,7 +1771,7 @@ static void raise_closed (const char *) Noreturn;
            pr "  rv = copy_type_value (r, len, t);\n";
            pr "  free (r);\n"
        | RInt32 -> pr "  rv = caml_copy_int32 (r);\n"
-       | RInt64 -> pr "  rv = caml_copy_int32 (r);\n"
+       | RInt64 -> pr "  rv = caml_copy_int64 (r);\n"
       );
 
       pr "  CAMLreturn (rv);\n";