This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: [PATCH] Fix (= an-IntNum a-Complex) ClassCastException
- From: Per Bothner <per at bothner dot com>
- To: Jamison Hope <jrh at theptrgroup dot com>, "kawa at sourceware dot org list" <kawa at sourceware dot org>
- Date: Wed, 12 Nov 2014 18:00:46 -0800
- Subject: Re: [PATCH] Fix (= an-IntNum a-Complex) ClassCastException
- Authentication-results: sourceware.org; auth=none
- References: <9750B4BE-B1D5-40D7-A2B7-5905F15C1E8E at theptrgroup dot com>
On 11/12/2014 03:06 PM, Jamison Hope wrote:
Please apply the attached patch to fix this error comparing an <integer>
to a <complex>:
#|kawa:2|# (= 0 +i)
/dev/stdin:2:1: warning - call to #<procedure => throws java.lang.ClassCastException: gnu.math.CComplex cannot be cast to gnu.math.RealNum
java.lang.ClassCastException: gnu.math.CComplex cannot be cast to gnu.math.RealNum
Thanks. I checked this in.
--
--Per Bothner
per@bothner.com http://per.bothner.com/