From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8de7eedad50552f1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!proxad.net!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada bench : count words Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <87vf7n5njs.fsf@code-hal.de> <423f5813$0$9224$9b4e6d93@newsread4.arcor-online.net> <1j5jfikipztuc.jx5n2zhbg2np$.dlg@40tude.net> Date: Wed, 23 Mar 2005 08:56:22 +0100 Message-ID: <6dc2z3h8ql3c$.on1jxdlr2za$.dlg@40tude.net> NNTP-Posting-Date: 23 Mar 2005 08:56:19 MET NNTP-Posting-Host: bf05fc12.newsread4.arcor-online.net X-Trace: DXC=jU:0hLk\lMld:IG0JE`:@g:ejgIfPPlddjW\KbG]kaMhdbobRQ:W=Wb5eIelZnHQ2eWRXZ37ga[7jeh9Z=IkP^1dZ0NLZFc\ZDn X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:9774 Date: 2005-03-23T08:56:19+01:00 List-Id: On 23 Mar 2005 08:46:11 +0100, Pascal Obry wrote: > "Dmitry A. Kazakov" writes: > >> procedure Ada_WC is >> >> subtype Buffer_Index is Integer range 1..4099; > ^^^^ > 4097 > ... > >> Index := Index + 1; -- but I don't trust GNAT! >> else >> Last := Read (Standin, Buffer (1)'Address, 4098); -- 4K! to read > ^^^^ > 4096 > ... > >> <> >> if Index < Last then >> Index := Index + 1; >> else >> Last := Read (Standin, Buffer (1)'Address, 4098); > ^^^^ > 4096 > Pascal. Oh, sorry, of course. I always forget that powers of 2... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de