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,29aee5ef929679ff,start X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Requesting help with GNAT 3.09 constraint error, PowerPC Date: 1997/11/12 Message-ID: #1/1 X-Deja-AN: 288941053 References: <3468914F.46B4@scarecrow.gcs.redstone.army.mil> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 879347006 1425 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1997-11-12T00:00:00+00:00 List-Id: <> As well it might, unsigned types are somewhat lacking in negative numbers when you look at the possible values they accomodate! Your use of the word typecast suggests a C style of thinking, where the cast is unchecked, most likely what you mean by a typecast in Ada is a type conversion, and the value must be in range, or you will get a CE. What is odd here is not the CE, but the fact that you did not expect one!