bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #40077] Boolean logical `not` on float number can result


From: Per Bothner
Subject: [Bug-kawa] [bug #40077] Boolean logical `not` on float number can result in ClassCastException
Date: Tue, 24 Sep 2013 02:07:11 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36

Update of bug #40077 (project kawa):

                  Status:                    None => Fixed                  
             Assigned to:                    None => bothner                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

I checked in fix and testcase - thanks.

This wasn't very obvious.  The problem was not the floating-point number, but
that eqv? had the wrong return type: the generic Type.booleanType rather than
the Scheme-appropriate Scheme.booleanType.  Both are represented by a
primitive boolean at run-time, but the latter handles Scheme "boolean-value"
conversion.  The wrong type for eqv? causes the wrong return type for repeat?
to inferred, which then lead to the faulty runtime cast.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40077>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]