This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in =


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]