by JoeAltmaier · 10y ago · 0 comments
*(uint32_t*)s
will get you a SIGBUS if s is not aligned to a 4-byte boundary. Though that's another issue, not what OP was referring to.Anyway, the point of his post was about possible gains from removing validation, not about being portable or production code.
0x36313032 - 0x30303030 = 0x06010002
how is 0x02000106 the same as 0x06010002?