Bug dans output_value_to_malloc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3260 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
f410178e5e
commit
eb924a201f
|
@ -452,9 +452,11 @@ value output_value_to_buffer(value buf, value ofs, value len, value v, value fla
|
|||
void output_value_to_malloc(value v, value flags,
|
||||
/*out*/ char ** buf, /*out*/ long * len)
|
||||
{
|
||||
long len_res;
|
||||
alloc_extern_block();
|
||||
len_res = extern_value(v, flags);
|
||||
*buf = extern_block;
|
||||
*len = extern_value(v, flags);
|
||||
*len = len_res;
|
||||
}
|
||||
|
||||
/* Functions for writing user-defined marshallers */
|
||||
|
|
Loading…
Reference in New Issue