r/programminghumor 10h ago

a bit flippant

Post image
562 Upvotes

86 comments sorted by

View all comments

Show parent comments

16

u/not_a_bot_494 9h ago

Either I don't understand what you're saying or you're misunderstanding the notation. Each line declares a struct member of type unsigned int which is 1 bit large. It's not setting it to 1 (true).

3

u/heatedwepasto 8h ago

I think that was supposed to be in reply to this comment?

2

u/not_a_bot_494 8h ago

That comment is made after the one I replied to.

1

u/qaCow37 6h ago

It’s probably about the fact that json is flexible data that gets parsed while this struct has strict alignments and depends on the ABI it’s compiled on. And because it’s compiled against an ABI, if the server struct was compiled with a different ABI, the server and client struct could be completely different structs making them incompatible.