[m-rev.] diff: fix io.write_float with special float values in C grades
Julien Fischer
jfischer at opturion.com
Mon Jun 30 17:05:29 AEST 2014
On Mon, Jun 30, 2014 at 4:59 PM, Julien Fischer <jfischer at opturion.com>
wrote:
>
>
>
> On Mon, Jun 30, 2014 at 3:23 PM, Julien Fischer <jfischer at opturion.com>
> wrote:
>
>>
>> Fix the printing float special values with write_float in C grades.
>>
>> runtime/mercury_float.c:
>> When printing floats, do not append ".0" to nan, inf or -inf
>>
>
> The C# grade also gets this one wrong (same problem). The test case causes
> the Erlang grade to crash. (Things appear to be ok in the Java grade.)
>
The latter is somewhat understandable given that the Erlang grades does not
implement is_nan/1 or is_inf/1.
Cheers,
Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20140630/a0908c72/attachment.html>
More information about the reviews
mailing list