Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: What is your opinion about unsigned int u = -2 ? Date: Sat, 03 Aug 2024 16:52:00 -0700 Organization: None to speak of Lines: 11 Message-ID: <87frrldv1b.fsf@nosuchdomain.example.com> References: <87bk2cecan.fsf@bsb.me.uk> <87r0b6g3qx.fsf@nosuchdomain.example.com> <87h6c2fldh.fsf@nosuchdomain.example.com> <878qxefjk2.fsf@nosuchdomain.example.com> <87zfpue3bz.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 04 Aug 2024 01:52:00 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d07bdb3c66a7f25ead61bbbbc164c6d5"; logging-data="3865857"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bZntj1RcGBGsWHel5AMOr" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:gH30UtHu/m3YvVAsHlaj7S4dkw0= sha1:rdgA7t6Mn5ULOWhIU2mB6m2/3ZY= Xref: csiph.com comp.lang.c:387312 Thiago Adams writes: [...] > I used __builtin_add_overflow because i dint know if the new header > was available. > I am also implementing ckd_add etc for my own use in msvc. gcc 14.1.0 and llvm/clang 18.1.0 both provide the header. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */