[LC++]Smallest int -2147483648 or -2147483647?
Dr Mark H Phillips
mark at austrics.com.au
Wed Sep 4 17:36:05 UTC 2002
Thanks for the info! Just one thing though...
On Wed, 2002-09-04 at 16:27, Paul Gearon wrote:
> Well what you're doing works, but since I don't like warnings I'd
> initialise it with:
>
> int const minInt = 0x80000000;
>
> This gives the same result, without the warning.
Will this work across all architectures? Ie my understanding is
that different architectures implement negatives in slightly
differing ways.
Cheers,
Mark.
--
Dr Mark H Phillips
Research Analyst (Mathematician)
AUSTRICS - smarter scheduling solutions - www.austrics.com
Level 2, 50 Pirie Street, Adelaide SA 5000, Australia
Phone +61 8 8226 9850
Fax +61 8 8231 4821
Email mark at austrics.com.au
More information about the tuxCPProgramming
mailing list