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,b3edde39ad90f1b7 X-Google-Attributes: gid103376,public From: Florian Weimer Subject: Re: Representation clauses and streams Date: 1999/12/29 Message-ID: #1/1 X-Deja-AN: 566220443 Sender: rusfw@mercury.rus.uni-stuttgart.de References: <386A3C20.31A06016@telepath.com> Organization: Comp.Center (RUS), U of Stuttgart, FRG Content-Type: text/plain; charset=us-ascii User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-12-29T00:00:00+00:00 List-Id: Ted Dennison writes: > > Bits_Per_Octet : constant := 8; > > > > type One_Octet_Type is range 0 .. 2**(1*Bits_Per_Octet) - 1; > > for One_Octet_Type'Size use Bits_Per_Octet; > > > > is written as a two-octet value to a stream (Stream_Element'Size is, > > Hmm. I'm curious what would happen if you changed that type to a modular > type of the same range. It works, thanks. In fact, it seems as if GNAT takes the sign bit into account, which is, in my eyes, quite unnecessary.