▲ 1457 ▼ It's not great (media.kbin.social) submitted 3 years ago by mycodesucks@kbin.social to c/programmerhumor@lemmy.ml 65 comments fedilink hide all child comments I'm doing you a favor
[–] lol@sh.itjust.works 13 points 3 years ago* (1 child) If it works, it works. permalink fedilink source parent hideshow 2 child comments replies: [–] rmuk@feddit.uk 11 points 3 years ago (1 child) Steadily increasing unsigned integer on a long-running piece of infrastructure: bonjour permalink fedilink source parent hideshow 2 child comments replies: [–] socsa@lemmy.ml 3 points 3 years ago* (1 child) Laughs in struct LooooongCounter { long highPart; long lowPart; }; permalink fedilink source parent hideshow 2 child comments replies: [–] TheyCallMeHacked@discuss.tchncs.de 3 points 3 years ago LooooongCounter operator++(const LooooongCounter& c) { if(c.lowPart == ULONG_MAX) { c.highPart++; c.lowPart = 0; } else c.lowPart++; } permalink fedilink source parent
[–] rmuk@feddit.uk 11 points 3 years ago (1 child) Steadily increasing unsigned integer on a long-running piece of infrastructure: bonjour permalink fedilink source parent hideshow 2 child comments replies: [–] socsa@lemmy.ml 3 points 3 years ago* (1 child) Laughs in struct LooooongCounter { long highPart; long lowPart; }; permalink fedilink source parent hideshow 2 child comments replies: [–] TheyCallMeHacked@discuss.tchncs.de 3 points 3 years ago LooooongCounter operator++(const LooooongCounter& c) { if(c.lowPart == ULONG_MAX) { c.highPart++; c.lowPart = 0; } else c.lowPart++; } permalink fedilink source parent
[–] socsa@lemmy.ml 3 points 3 years ago* (1 child) Laughs in struct LooooongCounter { long highPart; long lowPart; }; permalink fedilink source parent hideshow 2 child comments replies: [–] TheyCallMeHacked@discuss.tchncs.de 3 points 3 years ago LooooongCounter operator++(const LooooongCounter& c) { if(c.lowPart == ULONG_MAX) { c.highPart++; c.lowPart = 0; } else c.lowPart++; } permalink fedilink source parent
[–] TheyCallMeHacked@discuss.tchncs.de 3 points 3 years ago LooooongCounter operator++(const LooooongCounter& c) { if(c.lowPart == ULONG_MAX) { c.highPart++; c.lowPart = 0; } else c.lowPart++; } permalink fedilink source parent