Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Bart Newsgroups: comp.lang.c Subject: Re: Top 10 most common hard skills listed on resumes... Date: Mon, 9 Sep 2024 00:25:07 +0100 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <871q27weeh.fsf@bsb.me.uk> <20240829083200.195@kylheku.com> <87v7zjuyd8.fsf@bsb.me.uk> <20240829084851.962@kylheku.com> <87mskvuxe9.fsf@bsb.me.uk> <87r09t3kzt.fsf@nosuchdomain.example.com> <87cyld3f83.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 09 Sep 2024 01:25:07 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f78fc89e66291041ea37870e95b59fc2"; logging-data="2206422"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EhlPka6VnRjIAZor/+PVX" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:HjLcgTjjxYpYKuf4k8fPIw4NtzI= Content-Language: en-GB In-Reply-To: <87cyld3f83.fsf@nosuchdomain.example.com> Bytes: 2534 On 09/09/2024 00:20, Keith Thompson wrote: > Bart writes: >> On 08/09/2024 22:15, Keith Thompson wrote: >>> Bart writes: >>> [...] >>>> I had a problem with this code because it was so verbose. The first >>>> thing I did was to define aliases u64 and u32 for those long types: >>>> >>>> typedef unsigned long long u64; >>>> typedef unsigned long u32; >>> So you're assuming that unsigned long is 32 bits? (It's 64 bits on >>> the systems I use most.) >> >> That should be unsigned int. > > So you're assumuing that unsigned int is 32 bits? Yes. The code requires at least a 32-bit int anyway. > I know you're aware of . You can use it to define your own > u64 and 32 aliases if you like. I know about that header. I find it fiddlier to type than writing unsigned long long once, which is bad enough.