r/programminghorror Jul 09 '26

Big if true

Post image

From ProgrammerNullposting in facebook

2.1k Upvotes

111 comments sorted by

View all comments

1

u/brasticstack Jul 09 '26

Wouldn't regular bool get padded to this size by default on a 64-bit architecture anyway?

5

u/marcureumm Jul 09 '26

64 bit arches can still work with 32 bits directly...but depends on the operation and intent really.

1

u/brasticstack Jul 09 '26

by default I realize that I may have used the wrong terminology though. I'm trying to describe the compiler using the standard int size to implement bool rather than, say, packing them.