mycodesucks@kbin.social to Programmer Humor@lemmy.ml · 1 year agoIt's not greatmedia.kbin.socialimagemessage-square65fedilinkarrow-up11.17Karrow-down129file-text
arrow-up11.14Karrow-down1imageIt's not greatmedia.kbin.socialmycodesucks@kbin.social to Programmer Humor@lemmy.ml · 1 year agomessage-square65fedilinkfile-text
minus-squaresocsa@lemmy.mllinkfedilinkarrow-up2·edit-21 year agoLaughs in struct LooooongCounter { long highPart; long lowPart; };
minus-squareTheyCallMeHacked@discuss.tchncs.delinkfedilinkarrow-up2·1 year agoLooooongCounter operator++(const LooooongCounter& c) { if(c.lowPart == ULONG_MAX) { c.highPart++; c.lowPart = 0; } else c.lowPart++; }
Laughs in
struct LooooongCounter { long highPart; long lowPart; };
LooooongCounter operator++(const LooooongCounter& c) { if(c.lowPart == ULONG_MAX) { c.highPart++; c.lowPart = 0; } else c.lowPart++; }