Marek Knápek (@marekknapek) 's Twitter Profile
Marek Knápek

@marekknapek

Level 33 C++ sourcerer.

ID: 174443885

linkhttps://about.me/marek.knapek calendar_today03-08-2010 23:14:49

2,2K Tweet

230 Takipçi

819 Takip Edilen

Marek Knápek (@marekknapek) 's Twitter Profile Photo

Heh, for some time already, I write all my C casts like this: geneve_opt* opt; opt = ((geneve_opt*)(opts->m_u.m_bytes)) + opts->m_elements; or like this: opt = ((geneve_opt*)(opts->m_u.m_bytes + opts->m_bytes)); Ugly? Yes! Prone to errors? No! I have been burned in the past.