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=2.1 required=5.0 tests=BAYES_40,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4873305131bf4d94 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,4873305131bf4d94 X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,4873305131bf4d94 X-Google-Attributes: gid109fba,public From: fred@genesis.demon.co.uk (Lawrence Kirby) Subject: Re: Porting Experiences (was Ada and Pascal etc ) Date: 1997/11/05 Message-ID: <878770647snz@genesis.demon.co.uk>#1/1 X-Deja-AN: 287260839 References: <345E3ACD.A15@gsg.eds.com> <878648818snz@genesis.demon.co.uk> <345F9728.D61@gsg.eds.com> <63p2g1$vnt$1@helios.crest.nt.com> <3460CF02.3C99@ccgate.hac.com> X-Mail2News-User: fred@genesis.demon.co.uk X-Complaints-To: abuse@demon.net X-Mail2News-Path: genesis.demon.co.uk X-Trace: mail2news.demon.co.uk 878771679 18665 fred genesis.demon.co.uk Organization: none Reply-To: fred@genesis.demon.co.uk Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Date: 1997-11-05T00:00:00+00:00 List-Id: In article <3460CF02.3C99@ccgate.hac.com> cbrand@ccgate.hac.com "Chris Brand" writes: ... >So, Lawrance Kirby claims that -2147483647 to 2147483647 will fit in a >long, while you claim that you can only rely on -2^31+1 to 2^31-1. > >Do I get a lollipop, or are you wrong ? Assuming you realise that ^ is a common way to represent "raised to the power of" (not C's exclusive-OR operator here!) and in maths expressions it tends to get a very high precedence, I'm not quite sure what you believe the difference to be. (2 raised to the power of 31)-1 is 2147483647. -- ----------------------------------------- Lawrence Kirby | fred@genesis.demon.co.uk Wilts, England | 70734.126@compuserve.com -----------------------------------------