Thread with 9 posts

jump to expanded post

on x64 Linux, uint64_t is an alias of unsigned long, but on x64 macOS, uint64_t is an alias of unsigned long long. this doesn’t matter for C code, but it interacts badly with C++ overload resolution, even though sizeof(long) == sizeof(long long) on both systems. fun!

Open thread at this post

@rcombs I mean yes we live in the 32-bit era now so desktops, laptops, phones and servers’ CPUs have sizeof(int) == 4, but embedded is a thing, and legacy OSes were a thing, and if you try to port legacy code to a modern OS you’ll suffer :p

Open thread at this post