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: Tue, 12 May 2026 07:12:00 -0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <86fr3wn2dr.fsf@linuxsc.com>
References: <10su8cn$am9i$1@dont-email.me> <10tls2u$39j7a$1@dont-email.me> <10tm49i$9d$1@reader1.panix.com> <10tn3so$3j8hc$1@dont-email.me> <10tnj8s$pnq$1@reader1.panix.com> <10tnmk6$3os5b$1@dont-email.me> <10tr6qi$odgj$2@kst.eternal-september.org> <10tr7v0$odia$1@dont-email.me> <20260511234804.00003e35@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Tue, 12 May 2026 14:12:03 +0000 (UTC)
Injection-Info: dont-email.me; logging-data="2105064"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6ywUKszMCAAZs69a7asihY9wWlAED7XU="; posting-host="714746643ff61f997ea29d517f63563d"
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:BOrLshzQ+wnTTcmUTQuGNaP94rM= sha1:+QZ0EPsWDRHNSaKXCH1BN8sCcVI= sha256:V+5BxGRSdqQE2TDiXUpQ7JBvVv7InGaNLqh/b9s9Akk= sha1:xVczYo05K3cXjDqCi34llQUfCjI=
Xref: csiph.com comp.lang.c:398812
Michael S writes:
> I not just like stdint.h*
> I also hate when C programmers define their own fixed-width integer
> types.
>
> [...]
>
> That would raise my blood pressure:
> typedef int32_t s32;
> typedef uint32_t u32;
> typedef uint8_t octet;
Can you say what it is about them that you don't like?
Or why you don't like them? Are the reasons the same
in all three cases, or is octet different?