bug-gnucobol
[Top][All Lists]
Advanced

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

Re: Documentation inconsistency


From: Simon Sobisch
Subject: Re: Documentation inconsistency
Date: Wed, 10 Feb 2021 17:33:08 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

Hi Bob,

thank you for the note.

Actually both max values are wrong as the "C" long is not a guaranteed
fixed size (which was the reason to add that extension for easier
mapping when calling into C libraries).

Depending on the system the range is either 0 to 2^32 or 0 to 2^64.
This USAGE should only be used for direct CALLs into C and otherwise
should not be used (and it won't compile with any strict -std but default).

Simon

Am 10.02.2021 um 16:49 schrieb rdubner@symas.com:
In the GnuCOBOL programmer’s guide, 3.1.2, 25-Jan-2021, page 216

The description of the BINARY-C-LONG USAGE says the range is 0 to 2^32

It should be 2^64

The implementation is correct; it’s the documentation that’s incorrect.




reply via email to

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