From: Mathias Kende <mathias.kende@ens.fr>
To: OCaml List <caml-list@inria.fr>
Subject: possible bug in serialization of double in intern.c/extern.c
Date: Mon, 21 Jan 2008 17:34:52 +0100 [thread overview]
Message-ID: <1200933292.13180.12.camel@localhost> (raw)
Hello,
I found something that I believe to be a bug in the serialization of
double: in byterun/extern.c the "caml_serialize_float_8" function just
calls the "caml_serialize_block_8" function to serialize its float while
in intern.c the "caml_deserialize_float_8" function calls the
"caml_deserialize_block_float_8" function which performs more work than
the "caml_deserialize_block_8" function.
And indeed, I had trouble serializing custom values with
*serialize_float_8 functions, until I replace these calls either by
their *_block_8 or the *_block_float_8 equivalents (I suppose that the
later is better).
Should I fill a bug report for this? or is there something I do not know
about the use of these functions?
Thanks.
Mathias
reply other threads:[~2008-01-21 16:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1200933292.13180.12.camel@localhost \
--to=mathias.kende@ens.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox