Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c++ Subject: Re: two's complement idea Date: Tue, 25 Feb 2020 16:14:51 -0800 Organization: A noiseless patient Spider Lines: 12 Message-ID: <86tv3e9pc4.fsf@linuxsc.com> References: <86y2sqace9.fsf@linuxsc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="374de5af758d52cd11de26e00b529a7d"; logging-data="24595"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xB0l1DEoiTpKWIiFYbV5LIt56iWuov6o=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:HEcRnuiTgmlfaLm6dT3NBXDoEjc= sha1:J2dDn+1AZVH5Mj0S+VvyjYl3rfQ= Xref: csiph.com comp.lang.c++:72023 cross@spitfire.i.gajendra.net (Dan Cross) writes: > In article <86y2sqace9.fsf@linuxsc.com>, > Tim Rentsch wrote: > >> Why not just this? (size_t)-1 /2 +1 > > Because I didn't think of it before you posted > it, Tim. :-) Thank you for that Dan. It's good to see you back in the newsgroups again.