Subject: bug#14865: flmax and flmin do not handle +nan.0 correctly

From: Göran Weinholt <[email-masked]>
Date: Mon, 15 Jul 2013 13:11:47 +0200

Hello schemers,

the flmax and flmin procedures from (rnrs) do not handle +nan.0
correctly:

scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (flmax +inf.0 +nan.0)
$1 = +inf.0
scheme@(guile-user)> (flmin -inf.0 +nan.0)
$2 = -inf.0

The result should be +nan.0. From r6rs-lib: "They always return a NaN
when one or more of the arguments is a NaN." Tested with
2.0.9.22-7e816-dirty.

Regards,

-- 
Göran Weinholt <[email-masked]>
It's a beautiful day.
Don't let it get away.