Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Could you please discuss whether casting a size_t variable to unsigned int variable is the correct way to handle... Date: Tue, 12 May 2015 12:59:17 -0700 Organization: None to speak of Lines: 25 Message-ID: <87lhgtefe2.fsf@kst-u.example.com> References: <87ioc3j29h.fsf@kst-u.example.com> <3cd2ac79-aeaa-4b7a-91d7-6fc63f592f72@googlegroups.com> <87a8xfi01c.fsf@kst-u.example.com> <876180gufr.fsf@kst-u.example.com> <877fsdg205.fsf@kst-u.example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="9be37d943435275679235b07c7947eef"; logging-data="2547"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PRSispn5iQZjnaEWd87KC" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:cEhbeaHp5Ti04hG6mHdIY9soK2c= sha1:JdDPa5WiRET3ciA68xmcwcy1wm4= Xref: csiph.com comp.lang.c:61925 Tim Rentsch writes: > Keith Thompson writes: >> glen herrmannsfeldt writes: [...] >>> If 24 bits could be done faster than 32, it seems reasonable >>> to use it. >> >> Sure -- and one reasonable way to do that would be to define an >> extended integer type, say `__int24`, and then have >> >> typedef size_t unsigned __int24; >> >> in . > > Presumably you meant to say that the other way around. Yes. typedef unsigned __int24 size_t; -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"