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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Examining individual bytes of an integer Date: Mon, 15 Oct 2018 09:55:51 +0100 Organization: A noiseless patient Spider Message-ID: References: <9d90fa3e-f800-4086-bf97-a65474a8140a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="da8580838aa05a08cfb2548df7377043"; logging-data="27673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19g2mRql+n2sEP7rMQXGPLQc5zQ7ZaMhtM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:xwdUA2WsDGEDzq8BtaNM1J7QL3k= sha1:tTcge6eF0bUWm29Fz7onLvCKm6c= Xref: reader02.eternal-september.org comp.lang.ada:54580 Date: 2018-10-15T09:55:51+01:00 List-Id: Niklas Holsti writes: > (I have become very sensitive to endianness problems because my daily > work involves writing Ada programs targeted to big-endian SPARC > machines, but tested initially on little-endian PCs.) My favourite was the BE system with a BE interface card to an LE network protocol .. the interface card was only interested in the 16-bit message header components, so it converted *the whole packet* as if it only contained 16-bit values. Which it didn't.