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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,30e0ceaf4e6be70c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-09 21:56:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Simple program to find average of 3 numbers Date: 10 Jul 2003 05:55:05 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <6ZMNa.109291$0B.2183354@wagner.videotron.net> <1ec946d1.0307090725.73f5f200@posting.google.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1057812969 16374 62.49.19.209 (10 Jul 2003 04:56:09 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 10 Jul 2003 04:56:09 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:40159 Date: 2003-07-10T05:55:05+01:00 List-Id: mheaney@on2.com (Matthew Heaney) writes: > As was pointed out, when using gnat you should always specify the > -gnato option, to enable integer overflow checks. (However, I did > get the overflow check without specifying that switch, so perhaps > something has changed in the 3.15p release of gnat.) I think the overflow checks are for overflow in the base type, so for T_Base is new Integer you'ld have to do something like Integer'Last + 1.