News for hackers. Stuff that matters.
Re:OpenSSL 3.0.7 Published by Sohcahtoa82 on Tuesday November 01, 2022 @12:55PM (#33423856)
Agreed. sizeof FEELS like a function, and so I use parentheses with it, even though I know it's not actually a function.
Re:OpenSSL 3.0.7 Published by krylon on Tuesday November 01, 2022 @04:32PM (#33427088)
Wasn't there some subtle difference between using sizeof with vs without parens? Something like if you pass a type to sizeof -- e.g. sizeof(*int) -- you must use parents anyway? It's been years since I've used C, I'm probably not remembering it correctly.
Re:OpenSSL 3.0.7 Published by scatters on Tuesday November 01, 2022 @09:16PM (#33430251)
Yes, exactly that. `sizeof(int)` OK, `sizeof(i)` OK, `sizeof i` OK, `sizeof int` not OK. One of those weird rules.