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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d7ae8269a4ecf7c4 X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: Prevalence of Compilers for Which Integer'Size < 32? Date: 1996/07/30 Message-ID: <31FE0C01.302F@lmtas.lmco.com>#1/1 X-Deja-AN: 171094794 references: <4tdp24$5h1@news.pacifier.com> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.02 (Macintosh; I; 68K) Date: 1996-07-30T00:00:00+00:00 List-Id: Robert A Duff wrote: > > What's wrong with: > > type anInt32 is range -2**31 .. 2**31-1; Because it's not: Bits_32 : constant := 32; type anInt32 is range -(2**(Bits_32-1)) .. 2**(Bits_32-1)-1; Note the gratuitous parentheses in the first expression, to help those who think "-2" is a literal and not an expression. (Sorry, couldn't resist :) -- LMTAS - "Our Brand Means Quality"