3 ms·
> For 32 bit systems using 64bit instead of size_t would similarly solve the problem. ~~C does not guarantee a 64 bit type exists.~~ This is not really correct
by morelisp 4y ago
> For 32 bit systems using 64bit instead of size_t would similarly solve the problem.
~~C does not guarantee a 64 bit type exists.~~ This is not really correct these days.
- wizeman 4y ago> C does not guarantee a 64 bit type exists. Isn't (signed/unsigned) 'long long int' mandatory since C99? It says: 'There are five standard signed integer types, designated as signed char, short int, int, long int, and long long int'. My cursory search for 'long long' in the standard didn't find anything about it being optional...
- morelisp 4y agoYou appear to be correct, though in my defense I didn't give a version and I have definitely been stuck on such a compiler long after 1999. (And I suspect they're still over-represented for 32 bit systems.)