Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Safety of casting from 'long' to 'int' Date: Sun, 03 May 2026 20:11:14 -0700 Organization: A noiseless patient Spider Lines: 15 Message-ID: <86o6ivyilp.fsf@linuxsc.com> References: <10su8cn$am9i$1@dont-email.me> <10sv4v0$h9mn$1@dont-email.me> <84c1c180f4d5b96259a631bdb09b6054b4eb44d2.camel@gmail.com> <10svgfv$l2bu$1@dont-email.me> <10t4hse$22u36$1@dont-email.me> <97a1c40bf71cfe8edab25d5ac8a1ad435c3995e5.camel@gmail.com> <10t4t8v$25van$1@dont-email.me> <10t54is$28gto$1@dont-email.me> <10t5oeo$2e8t8$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Mon, 04 May 2026 03:11:15 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3548936"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19auny9kXVmxOptgLeWUvmWFcAKNsO6Yfk="; posting-host="a1e35ddd35ce451998c695505411656f" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:pfDrS1GCfRs2VYy4uYuWes0g5MA= sha1:cGEM9lNIXsfYqSxOjNMaIh9iGsw= sha256:0LdKXa9t0Lg0mCf+y22nbdT0EkElhIPKbFobl2UUgQc= sha1:j67fN5uKkZuoonyjIGl3/ZOM8wY= Xref: csiph.com comp.lang.c:398270 James Kuyper writes: [...] > Oddly enough, the standard makes almost no use of the term "observable > behavior" other than defining what the term means. What it says about > observable behavior, it says during the listing of what counts as > observable behavior, and it says that about the list, not about the > term defined by that list. The term is defined merely as a convenient > way of referring to the itemized list of things to which those rules > apply. Didn't this change in N3220 (or perhaps an earlier draft)? Certainly it looks like it did, comparing N3220 to earlier versions of the standard.