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.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,45a9122ddf5fcf5 X-Google-Attributes: gid103376,public From: "Samuel T. Harris" Subject: Re: Rules for Representation of Subtypes Date: 1996/09/23 Message-ID: <32474889.6EEA@gsde.hso.link.com>#1/1 X-Deja-AN: 184957272 references: <01bba947$d8990620$188371a5@dhoossr.iquest.com> content-type: text/plain; charset=us-ascii organization: Hughes Training Inc. - Houston Operations mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0 (X11; I; IRIX 5.3 IP19) Date: 1996-09-23T00:00:00+00:00 List-Id: David C. Hoos, Sr. wrote: > i.e., write: > > read (fd, A_Small_Integer'Address, A_Small_Integer'Size / > System.Storage_Unit); > More safe (in a general sense) is ... (A_Small_Integer'Size + System.Storage_Unit - 1) / System.Storage_Unit ... to handle those rare weird-sized entities with involve non-zero remainders to the poster's division. -- Samuel T. Harris, Senior Engineer Hughes Training, Inc. - Houston Operations 2224 Bay Area Blvd. Houston, TX 77058-2099 "If you can make it, We can fake it!"