This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Bug in =
- From: Vladimir Tsichevski <wowa1 at online dot ru>
- To: "" <are at meisfjord dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Sat, 19 Apr 2003 20:53:57 +0400
- Subject: Re: Bug in =
- Organization: Jet
- Reply-to: wowa1 at online dot ru
Hi Are,
> This code fails to compile:
>
> (define (a b)
> (if (= 2 (length b)) 2 b))
>
> This is what happens:
>
> (compiling bug1.scm)
> Internal error while compiling bug1.scm:2
> java.lang.Error: emitGotoIfCompare2: logop must be one of ifeq...ifle
> at
> gnu.bytecode.CodeAttr.emitGotoIfCompare2(CodeAttr.java:1302)
> ...
>
> If the sequence of the two arguments to = is changed it works fine.
>
> Regards,
>
>
> Are
Take a look at my message titled "bug in
gnu/kawa/functions/NumberCompare.java"
dated 17 Mar 2003 for a short explanation and a patch.
Strange enough, nobody fixed that in CVS since then :-(
Regards,
Vladimir