Liste des Groupes | Revenir à cl c |
Bart <bc@freeuk.com> writes:Yes. The code requires at least a 32-bit int anyway.On 08/09/2024 22:15, Keith Thompson wrote:So you're assumuing that unsigned int is 32 bits?Bart <bc@freeuk.com> writes:>
[...]I had a problem with this code because it was so verbose. The firstSo you're assuming that unsigned long is 32 bits? (It's 64 bits on
thing I did was to define aliases u64 and u32 for those long types:
>
typedef unsigned long long u64;
typedef unsigned long u32;
the systems I use most.)
That should be unsigned int.
I know you're aware of <stdint.h>. You can use it to define your ownI know about that header. I find it fiddlier to type than writing unsigned long long once, which is bad enough.
u64 and 32 aliases if you like.
Les messages affichés proviennent d'usenet.