bug-gnucobol
[Top][All Lists]
Advanced

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

[open-cobol-list] Re: possibly bug: Compare: numeric (USAGE COMP ...)


From: Keisuke Nishida
Subject: [open-cobol-list] Re: possibly bug: Compare: numeric (USAGE COMP ...) with alphanumeric
Date: Sun May 16 07:37:03 2004
User-agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryƍmae) APEL/10.3 Emacs/21.3 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI)

At Fri, 7 May 2004 16:01:14 +0200,
Thomas Biehler wrote:
> 
> i have attached a testprogram "TESTCOMPARE.cob"  (ANSI 1985!)
> which shows the problematic case of comparison:
>     PIC S9(4) COMP   =    PIC X(4)
>     (numeric field with a small value => 1 =  "0001")

This is a bug.  I have fixed it in CVS.

Note that I haven't implemented binary truncation correctly yet,
and the current implementation might not work as you expect.

Keisuke


reply via email to

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